We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f63d0 commit 6d1124eCopy full SHA for 6d1124e
compiler/rustc_codegen_llvm/src/back/write.rs
@@ -128,7 +128,8 @@ pub fn target_machine_factory(
128
let (opt_level, _) = to_llvm_opt_settings(optlvl);
129
let use_softfp = sess.opts.cg.soft_float;
130
131
- let ffunction_sections = false;
+ let ffunction_sections =
132
+ sess.target.target.options.function_sections && optlvl != config::OptLevel::No;
133
let fdata_sections = ffunction_sections;
134
135
let code_model = to_llvm_code_model(sess.code_model());
0 commit comments