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.
This commit is contained in:
Jacob Pratt 2024-12-11 03:30:42 -05:00 committed by GitHub
commit 2891a92e90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1694,6 +1694,8 @@ impl<'a> Linker for AixLinker<'a> {
fn pgo_gen(&mut self) {
self.link_arg("-bdbg:namedsects:ss");
self.link_arg("-u");
self.link_arg("__llvm_profile_runtime");
}
fn control_flow_guard(&mut self) {}