aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:47 +0000
commitc1339030e15c317ce695092de4faad4c0db8b342 (patch)
tree1bf4c8e154a9b559ec4e9a64afdd1b1c59c721a2
parentaf97c529337e69acad9aea2aa4da8895e9273532 (diff)
downloadupstream-c1339030e15c317ce695092de4faad4c0db8b342.tar.gz
upstream-c1339030e15c317ce695092de4faad4c0db8b342.tar.bz2
upstream-c1339030e15c317ce695092de4faad4c0db8b342.zip
kernel: fix stripping of modules with duplicate symbol names
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31031 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xscripts/strip-kmod.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh
index 2a75e39821..13e6b58007 100755
--- a/scripts/strip-kmod.sh
+++ b/scripts/strip-kmod.sh
@@ -38,9 +38,10 @@ BEGIN {
n = 0
}
-$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ {
+$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ && !def[$3] {
print "--redefine-sym "$3"=_"n;
n = n + 1
+ def[$3] = 1
}
' > "$MODULE.tmp1"