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 | a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397 (patch) | |
tree | 57dfc210cf2d20160eae35ec8f1da0ff20adadf4 | |
parent | 82211c7bcce1b003f45a3ce0e28a58dd15d05ed8 (diff) | |
download | upstream-a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397.tar.gz upstream-a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397.tar.bz2 upstream-a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397.zip |
kernel: do not rename module symbols with kallsyms enabled
SVN-Revision: 30759
-rw-r--r-- | rules.mk | 2 | ||||
-rwxr-xr-x | scripts/strip-kmod.sh | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -219,7 +219,7 @@ else endif endif RSTRIP:= \ - export CROSS="$(TARGET_CROSS)"; \ + export CROSS="$(TARGET_CROSS)" $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1); \ NM="$(TARGET_CROSS)nm" \ STRIP="$(STRIP)" \ STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \ 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 |