mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
[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.
This commit is contained in:
parent
1547c076bf
commit
aa692a577e
@ -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) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user