Skip to content

Commit aa692a5

Browse files
author
Kai Luo
committed
[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.
1 parent 1547c07 commit aa692a5

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -1639,16 +1639,7 @@ impl<'a> Linker for AixLinker<'a> {
16391639

16401640
fn ehcont_guard(&mut self) {}
16411641

1642-
fn debuginfo(&mut self, strip: Strip, _: &[PathBuf]) {
1643-
match strip {
1644-
Strip::None => {}
1645-
// FIXME: -s strips the symbol table, line number information
1646-
// and relocation information.
1647-
Strip::Debuginfo | Strip::Symbols => {
1648-
self.cmd.arg("-s");
1649-
}
1650-
}
1651-
}
1642+
fn debuginfo(&mut self, _: Strip, _: &[PathBuf]) {}
16521643

16531644
fn no_crt_objects(&mut self) {}
16541645

0 commit comments

Comments
 (0)