summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-19 21:09:47 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-19 21:09:47 +0000
commit614c6eee5227e1ecb75bc3bac0e163d0bfcfe621 (patch)
tree1bf4c8e154a9b559ec4e9a64afdd1b1c59c721a2 /scripts
parentb0439c1a1112005e367a71581e5d3bcf1a37b323 (diff)
kernel: fix stripping of modules with duplicate symbol names
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31031 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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"