summaryrefslogtreecommitdiffstats
path: root/scripts/rstrip.sh
diff options
context:
space:
mode:
authorralph <ralph@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-02 17:33:02 +0000
committerralph <ralph@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-02 17:33:02 +0000
commit2c0ee53d13868ac9fed7dcc05523214546f315bc (patch)
tree2abc2b4cf193955f7c320f674764c781d8feabf6 /scripts/rstrip.sh
parente9861a31a402b1555cee95899f2a09ce8a37a6ee (diff)
strip relocatable binaries (not depending on the extension)
( thanks to Thomas ) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14726 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/rstrip.sh')
-rwxr-xr-xscripts/rstrip.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh
index 6dd44f2ed..5efc86652 100755
--- a/scripts/rstrip.sh
+++ b/scripts/rstrip.sh
@@ -45,7 +45,7 @@ find $TARGETS -type f -a -exec file {} \; | \
IFS=":"
while read F S; do
echo "$SELF: $F:$S"
- [ "${F##*\.}" = "o" -o "${F##*\.}" = "ko" ] && {
+ [ "${S}" = "relocatable" ] && {
eval "$STRIP_KMOD -w -K '__param*' -K '__mod*' $(find_modparams "$F")$F"
} || {
eval "$STRIP $F"