Skip to content

Commit b24473c

Browse files
authored
Rollup merge of #142221 - mustartt:aix-fix-strip-order, r=davidtwco
[AIX] strip underlying xcoff object When stripping, we need to strip the archive member first before archiving. Otherwise, the shared library remain untouched, only the archive symbol table will be modified.
2 parents fac011e + a71cba7 commit b24473c

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,11 @@ fn link_natively(
10651065
match strip {
10661066
Strip::Debuginfo => {
10671067
// FIXME: AIX's strip utility only offers option to strip line number information.
1068-
strip_with_external_utility(sess, stripcmd, out_filename, &["-X32_64", "-l"])
1068+
strip_with_external_utility(sess, stripcmd, temp_filename, &["-X32_64", "-l"])
10691069
}
10701070
Strip::Symbols => {
10711071
// Must be noted this option might remove symbol __aix_rust_metadata and thus removes .info section which contains metadata.
1072-
strip_with_external_utility(sess, stripcmd, out_filename, &["-X32_64", "-r"])
1072+
strip_with_external_utility(sess, stripcmd, temp_filename, &["-X32_64", "-r"])
10731073
}
10741074
Strip::None => {}
10751075
}

0 commit comments

Comments
 (0)