about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorHenry Jiang <henry.jiang1@ibm.com>2024-12-03 13:04:52 -0500
committerHenry Jiang <henry.jiang1@ibm.com>2024-12-03 13:04:52 -0500
commitf4933ffbf1620df78a7ab12972ec3f0ce9dc08c8 (patch)
treefe8e8e78d8dbb4f213562f2e0163c512cb42ed9f /compiler/rustc_codegen_ssa/src
parent8575f8f91bbd7dca529d362afc8117db74661c3b (diff)
downloadrust-f4933ffbf1620df78a7ab12972ec3f0ce9dc08c8.tar.gz
rust-f4933ffbf1620df78a7ab12972ec3f0ce9dc08c8.zip
keep profile-rt symbol alive
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/linker.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs
index 05dfbd40a0a..4c5eb98e890 100644
--- a/compiler/rustc_codegen_ssa/src/back/linker.rs
+++ b/compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -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) {}