Revert "Create libgcc_stripped with llvm-objcopy"
We rely on a weird, GNU specific behaviour of objcopy: $ aarch64-linux-android-objcopy -w libgcc.a stripped.a --strip-unneeded-symbol=* $ llvm-nm --defined-only stripped.a | grep multi 0000000000000000 T __multi3 $ aarch64-linux-android-objcopy -w libgcc.a stripped.a --strip-unneeded-symbol=* --keep-symbol=FOO $ llvm-nm --defined-only stripped.a | grep multi llvm-objcopy has a different, more consistent behaviour that does not mark exported symbols as unneeded when "--keep-symbol" flag exists. However this behaviour will leave most symbols not deleted in the libgcc_stripped library. Revert the change while I'm implementing an alternative solution. Test: presubmit Bug: 142585047 Change-Id: I175e811f8a1f6afc6558267fc54e159ad5e12acf
This commit is contained in:
parent
5ac191f51f
commit
049ae6ae3e
1 changed files with 2 additions and 2 deletions
|
@ -67,9 +67,9 @@ do_strip_keep_symbols() {
|
|||
do_strip_keep_symbol_list() {
|
||||
echo "${symbols_to_keep}" | tr ',' '\n' > "${outfile}.symbolList"
|
||||
|
||||
KEEP_SYMBOLS="--strip-unneeded-symbol=.* --keep-symbols="
|
||||
KEEP_SYMBOLS="--strip-unneeded-symbol=* --keep-symbols="
|
||||
KEEP_SYMBOLS+="${outfile}.symbolList"
|
||||
"${CLANG_BIN}/llvm-objcopy" --regex "${infile}" "${outfile}.tmp" ${KEEP_SYMBOLS}
|
||||
"${CROSS_COMPILE}objcopy" -w "${infile}" "${outfile}.tmp" ${KEEP_SYMBOLS}
|
||||
}
|
||||
|
||||
do_strip_keep_mini_debug_info() {
|
||||
|
|
Loading…
Reference in a new issue