From ad582a586550bf2c72e963939f61a71df1af7c0c Mon Sep 17 00:00:00 2001 From: David Tenty Date: Mon, 4 May 2026 17:13:10 -0400 Subject: [PATCH] [AIX] add -bdbg:namedsects:ss link arg On AIX, PGO runtimes and ifunc support requires the named section linker feature which collects the name sections together and generates start/stop symbols for them. This change adds the option to the default linker args for the target. --- .../rustc_target/src/spec/targets/powerpc64_ibm_aix.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 {