Merge "Fix inverted logic for objcopy vs. llvm-objcopy with --keep-symbols"

This commit is contained in:
Treehugger Robot 2018-09-08 03:49:13 +00:00 committed by Gerrit Code Review
commit 0903f90e9a
1 changed files with 2 additions and 2 deletions

View File

@ -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
}