From 91042e02a79a015f3e6c949838ea1f7f0f1f9c69 Mon Sep 17 00:00:00 2001
From: Ralph Hempel <ralph.hempel@lantiq.com>
Date: Mon, 2 Mar 2009 17:33:02 +0000
Subject: [PATCH] strip relocatable binaries (not depending on the extension) (
 thanks to Thomas )

SVN-Revision: 14726
---
 scripts/rstrip.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh
index 6dd44f2ed2..5efc866524 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"
-- 
GitLab