Skip to content

Commit 6e91f21

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 e918db8 commit 6e91f21

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,16 +1613,7 @@ impl<'a> Linker for AixLinker<'a> {
16131613

16141614
fn control_flow_guard(&mut self) {}
16151615

1616-
fn debuginfo(&mut self, strip: Strip, _: &[PathBuf]) {
1617-
match strip {
1618-
Strip::None => {}
1619-
// FIXME: -s strips the symbol table, line number information
1620-
// and relocation information.
1621-
Strip::Debuginfo | Strip::Symbols => {
1622-
self.cmd.arg("-s");
1623-
}
1624-
}
1625-
}
1616+
fn debuginfo(&mut self, _: Strip, _: &[PathBuf]) {}
16261617

16271618
fn no_crt_objects(&mut self) {}
16281619

0 commit comments

Comments
 (0)