Skip to content

Commit 73a7a59

Browse files
committed
set subsections_via_symbols for ld64 helper sections
1 parent 65fa0ab commit 73a7a59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_codegen_ssa/src/back/metadata.rs

+3
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
221221

222222
file.set_macho_build_version(macho_object_build_version_for_target(sess))
223223
}
224+
if binary_format == BinaryFormat::MachO {
225+
file.set_subsections_via_symbols();
226+
}
224227
if binary_format == BinaryFormat::Coff {
225228
// Disable the default mangler to avoid mangling the special "@feat.00" symbol name.
226229
let original_mangling = file.mangling();

0 commit comments

Comments
 (0)