diff --git a/compiler/rustc_target/src/spec/targets/powerpc64_ibm_aix.rs b/compiler/rustc_target/src/spec/targets/powerpc64_ibm_aix.rs index 469f8272e1ccf..5ab81aa55787e 100644 --- a/compiler/rustc_target/src/spec/targets/powerpc64_ibm_aix.rs +++ b/compiler/rustc_target/src/spec/targets/powerpc64_ibm_aix.rs @@ -5,7 +5,13 @@ pub(crate) fn target() -> Target { base.max_atomic_width = Some(64); base.add_pre_link_args( LinkerFlavor::Unix(Cc::No), - &["-b64", "-bpT:0x100000000", "-bpD:0x110000000", "-bcdtors:mbr:0:s"], + &[ + "-b64", + "-bpT:0x100000000", + "-bpD:0x110000000", + "-bcdtors:mbr:0:s", + "-bdbg:namedsects:ss", // PGO and ifunc support depends on the named sections linker feature + ], ); Target {