summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-01 09:58:03 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-01 09:58:03 +0000
commite8cb32229625f8350cb4b18079db34973e6bb4b8 (patch)
tree7b044af222f5bc9b43f3549ae7fd2d61d3bce9f0 /scripts
parent55d98b2a3ff0e54657e6c01b094bd63b18f2d84e (diff)
kernel: do not rename module symbols with kallsyms enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30759 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/strip-kmod.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh
index 68da9e901..57207e3ae 100755
--- a/scripts/strip-kmod.sh
+++ b/scripts/strip-kmod.sh
@@ -22,6 +22,11 @@ ${CROSS}objcopy \
-G __this_module \
-x "$MODULE" "$MODULE.tmp"
+[ -n "$NO_RENAME" ] && {
+ mv "${MODULE}.tmp" "$MODULE"
+ exit 0
+}
+
${CROSS}nm "$MODULE.tmp" | awk '
BEGIN {
n = 0