diff options
author | Colin Cross <ccross@android.com> | 2018-09-07 17:35:56 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2018-09-07 17:36:40 -0700 |
commit | 0abcbe6a6dde9840b679aa63c9928a206d07ac88 (patch) | |
tree | d7b9d95ecc25034979f2284a90f7eb3b30595669 | |
parent | 2f7e3bb4d0ca11972b9de2f819d6f79d6079011e (diff) | |
download | build_soong-0abcbe6a6dde9840b679aa63c9928a206d07ac88.tar.gz build_soong-0abcbe6a6dde9840b679aa63c9928a206d07ac88.tar.bz2 build_soong-0abcbe6a6dde9840b679aa63c9928a206d07ac88.zip |
Fix inverted logic for objcopy vs. llvm-objcopy with --keep-symbols
Bug: 113936524
Test: m checkbuild
Change-Id: I958c4277342ed6885714a01bd9f35183ed73eda7
-rwxr-xr-x | scripts/strip.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/strip.sh b/scripts/strip.sh index d184a974..cf8f6314 100755 --- a/scripts/strip.sh +++ b/scripts/strip.sh @@ -63,9 +63,9 @@ do_strip_keep_symbols() { # we have not found a use case that is broken by objcopy yet. REMOVE_SECTIONS=`"${CROSS_COMPILE}readelf" -S "${infile}" | awk '/.debug_/ {print "--remove-section " $2}' | xargs` if [ ! -z "${use_llvm_strip}" ]; then - "${CROSS_COMPILE}objcopy" "${infile}" "${outfile}.tmp" ${REMOVE_SECTIONS} - else "${CLANG_BIN}/llvm-objcopy" "${infile}" "${outfile}.tmp" ${REMOVE_SECTIONS} + else + "${CROSS_COMPILE}objcopy" "${infile}" "${outfile}.tmp" ${REMOVE_SECTIONS} fi } |