Skip to content

Commit bc6b9a1

Browse files
committed
build-tc.sh: Use strip --strip-unneeded for relocatable ELF
1 parent c9e3c7f commit bc6b9a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-tc.sh

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ for f in $(find installTmp -type f -exec file {} \;); do
4646
if [ -n "$(echo $f | grep 'not stripped')" ]; then
4747
strip --strip-unneeded "$i"
4848
fi
49+
elif [ -n "$(echo $f | grep 'ELF .* relocatable')" ]; then
50+
if [ -n "$(echo $f | grep 'not stripped')" ]; then
51+
i=$(echo $f | awk '{print $1}');
52+
strip --strip-unneeded "${i: : -1}"
53+
fi
4954
else
5055
if [ -n "$(echo $f | grep 'not stripped')" ]; then
5156
i=$(echo $f | awk '{print $1}');

0 commit comments

Comments
 (0)