Rebased
This commit is contained in:
parent
aa692a577e
commit
e74e6e767d
1 changed files with 15 additions and 0 deletions
|
@ -1080,6 +1080,21 @@ fn link_natively<'a>(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if sess.target.is_like_aix {
|
||||||
|
let stripcmd = "/usr/bin/strip";
|
||||||
|
match strip {
|
||||||
|
Strip::Debuginfo => {
|
||||||
|
// FIXME: AIX's strip utility only offers option to strip line number information.
|
||||||
|
strip_symbols_with_external_utility(sess, stripcmd, out_filename, Some("-l"))
|
||||||
|
}
|
||||||
|
Strip::Symbols => {
|
||||||
|
// Must be noted this option removes symbol __aix_rust_metadata and thus removes .info section which contains metadata.
|
||||||
|
strip_symbols_with_external_utility(sess, stripcmd, out_filename, Some("-r"))
|
||||||
|
}
|
||||||
|
Strip::None => {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue