about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2023-10-24 14:59:05 +0800
committerKai Luo <lkail@cn.ibm.com>2024-03-05 15:10:12 +0800
commitaa692a577eee7fa1aaa72d29efeb860bbae6572f (patch)
tree395fe2952f285c16ec38f754dcd2e696608df9c2
parent1547c076bfec8abb819d6a81e1e4095d267bd5b4 (diff)
downloadrust-aa692a577eee7fa1aaa72d29efeb860bbae6572f.tar.gz
rust-aa692a577eee7fa1aaa72d29efeb860bbae6572f.zip
[AIX] Remove AixLinker's debuginfo() implementation
`-s` option doesn't perfectly fit into debuginfo()'s semantics and may unexpectedly
remove metadata in shared libraries. Remove the implementation and suggest user to
use `strip` utility instead.
-rw-r--r--compiler/rustc_codegen_ssa/src/back/linker.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs
index e52efd86955..9bdff2abee9 100644
--- a/compiler/rustc_codegen_ssa/src/back/linker.rs
+++ b/compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -1639,16 +1639,7 @@ impl<'a> Linker for AixLinker<'a> {
 
     fn ehcont_guard(&mut self) {}
 
-    fn debuginfo(&mut self, strip: Strip, _: &[PathBuf]) {
-        match strip {
-            Strip::None => {}
-            // FIXME: -s strips the symbol table, line number information
-            // and relocation information.
-            Strip::Debuginfo | Strip::Symbols => {
-                self.cmd.arg("-s");
-            }
-        }
-    }
+    fn debuginfo(&mut self, _: Strip, _: &[PathBuf]) {}
 
     fn no_crt_objects(&mut self) {}