diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-01 09:58:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-01 09:58:03 +0000 |
commit | 81f11f697644e335434093917c1330aa844a9f27 (patch) | |
tree | 7b044af222f5bc9b43f3549ae7fd2d61d3bce9f0 /scripts | |
parent | bf508f06db4bc41d2e2c62992c65ec31ddab2d13 (diff) | |
download | upstream-81f11f697644e335434093917c1330aa844a9f27.tar.gz upstream-81f11f697644e335434093917c1330aa844a9f27.tar.bz2 upstream-81f11f697644e335434093917c1330aa844a9f27.zip |
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-x | scripts/strip-kmod.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 68da9e901b..57207e3ae6 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 |