Skip to content

Commit ad582a5

Browse files
committed
[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.
1 parent f53b654 commit ad582a5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

compiler/rustc_target/src/spec/targets/powerpc64_ibm_aix.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ pub(crate) fn target() -> Target {
55
base.max_atomic_width = Some(64);
66
base.add_pre_link_args(
77
LinkerFlavor::Unix(Cc::No),
8-
&["-b64", "-bpT:0x100000000", "-bpD:0x110000000", "-bcdtors:mbr:0:s"],
8+
&[
9+
"-b64",
10+
"-bpT:0x100000000",
11+
"-bpD:0x110000000",
12+
"-bcdtors:mbr:0:s",
13+
"-bdbg:namedsects:ss", // PGO and ifunc support depends on the named sections linker feature
14+
],
915
);
1016

1117
Target {

0 commit comments

Comments
 (0)