Skip to content

Commit 2891a92

Browse files
authored
Rollup merge of #134139 - mustartt:pgo-linker-flag, r=saethlin
[AIX] keep profile-rt symbol alive Clang passes `-u __llvm_profile_runtime` on AIX. https://reviews.llvm.org/D136192 We want to preserve the symbol in the case there are no instrumented object files.
2 parents fe7fc76 + f4933ff commit 2891a92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,8 @@ impl<'a> Linker for AixLinker<'a> {
16941694

16951695
fn pgo_gen(&mut self) {
16961696
self.link_arg("-bdbg:namedsects:ss");
1697+
self.link_arg("-u");
1698+
self.link_arg("__llvm_profile_runtime");
16971699
}
16981700

16991701
fn control_flow_guard(&mut self) {}

0 commit comments

Comments
 (0)