From a8ec8ce1ac0116dfa7c37aa28cbd80578be1b397 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 1 Mar 2012 09:58:03 +0000 Subject: kernel: do not rename module symbols with kallsyms enabled SVN-Revision: 30759 --- scripts/strip-kmod.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') 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 -- cgit v1.1