Skip to content

Commit

Permalink
build-tc.sh: Use strip --strip-unneeded for relocatable ELF
Browse files Browse the repository at this point in the history
  • Loading branch information
wloot committed Jan 17, 2020
1 parent c9e3c7f commit bc6b9a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-tc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ for f in $(find installTmp -type f -exec file {} \;); do
if [ -n "$(echo $f | grep 'not stripped')" ]; then
strip --strip-unneeded "$i"
fi
elif [ -n "$(echo $f | grep 'ELF .* relocatable')" ]; then
if [ -n "$(echo $f | grep 'not stripped')" ]; then
i=$(echo $f | awk '{print $1}');
strip --strip-unneeded "${i: : -1}"
fi
else
if [ -n "$(echo $f | grep 'not stripped')" ]; then
i=$(echo $f | awk '{print $1}');
Expand Down

0 comments on commit bc6b9a1

Please sign in to comment.