about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2023-03-23 15:14:27 +0800
committerKai Luo <lkail@cn.ibm.com>2023-03-23 15:14:27 +0800
commit3957d3a08a3687cc86d52ec0c539d65beb20f902 (patch)
tree9bfd030ecad048524469439b57f6778ddd5c262d
parentf11611018f661a22bd5bd76104e63a0f55950214 (diff)
downloadrust-3957d3a08a3687cc86d52ec0c539d65beb20f902.tar.gz
rust-3957d3a08a3687cc86d52ec0c539d65beb20f902.zip
Adjust debug info stripping
-rw-r--r--compiler/rustc_codegen_ssa/src/back/linker.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs
index 43252d5e373..dd117681950 100644
--- a/compiler/rustc_codegen_ssa/src/back/linker.rs
+++ b/compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -1605,8 +1605,9 @@ impl<'a> Linker for AixLinker<'a> {
     fn debuginfo(&mut self, strip: Strip, _: &[PathBuf]) {
         match strip {
             Strip::None => {}
-            Strip::Debuginfo => {}
-            Strip::Symbols => {
+            // FIXME: -s strips the symbol table, line number information
+            // and relocation information.
+            Strip::Debuginfo | Strip::Symbols => {
                 self.cmd.arg("-s");
             }
         }