kernel: do not rename module symbols with kallsyms enabled

SVN-Revision: 30759
This commit is contained in:
Felix Fietkau 2012-03-01 09:58:03 +00:00
parent 82211c7bcc
commit a8ec8ce1ac
2 changed files with 6 additions and 1 deletions

View file

@ -219,7 +219,7 @@ else
endif endif
endif endif
RSTRIP:= \ RSTRIP:= \
export CROSS="$(TARGET_CROSS)"; \ export CROSS="$(TARGET_CROSS)" $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1); \
NM="$(TARGET_CROSS)nm" \ NM="$(TARGET_CROSS)nm" \
STRIP="$(STRIP)" \ STRIP="$(STRIP)" \
STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \ STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \

View file

@ -22,6 +22,11 @@ ${CROSS}objcopy \
-G __this_module \ -G __this_module \
-x "$MODULE" "$MODULE.tmp" -x "$MODULE" "$MODULE.tmp"
[ -n "$NO_RENAME" ] && {
mv "${MODULE}.tmp" "$MODULE"
exit 0
}
${CROSS}nm "$MODULE.tmp" | awk ' ${CROSS}nm "$MODULE.tmp" | awk '
BEGIN { BEGIN {
n = 0 n = 0