Skip to content

Commit e7f230d

Browse files
committed
Auto merge of #72208 - tmandry:fix-fuchsia-solink, r=Mark-Simulacrum
Don't pass --dynamic-linker for Fuchsia dylibs This was causing a PT_INTERP header in Fuchsia dylibs (implying that they're executable when they're not). r? @Mark-Simulacrum cc @frobtech @petrhosek
2 parents 09739c2 + 15c2292 commit e7f230d

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_codegen_ssa/back

1 file changed

+1
-1
lines changed

src/librustc_codegen_ssa/back/link.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ fn linker_with_args<'a, B: ArchiveBuilder<'a>>(
14471447
add_link_script(cmd, sess, tmpdir, crate_type);
14481448

14491449
// NO-OPT-OUT, OBJECT-FILES-NO, AUDIT-ORDER
1450-
if sess.target.target.options.is_like_fuchsia {
1450+
if sess.target.target.options.is_like_fuchsia && crate_type == CrateType::Executable {
14511451
let prefix = match sess.opts.debugging_opts.sanitizer {
14521452
Some(Sanitizer::Address) => "asan/",
14531453
_ => "",

0 commit comments

Comments
 (0)