summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-01 09:58:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-01 09:58:03 +0000
commita8ec8ce1ac0116dfa7c37aa28cbd80578be1b397 (patch)
tree57dfc210cf2d20160eae35ec8f1da0ff20adadf4 /scripts
parent82211c7bcce1b003f45a3ce0e28a58dd15d05ed8 (diff)
downloadmtk-20170518-a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397.zip
mtk-20170518-a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397.tar.gz
mtk-20170518-a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397.tar.bz2
kernel: do not rename module symbols with kallsyms enabled
SVN-Revision: 30759
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 68da9e9..57207e3 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