mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 16:43:09 +02:00
kernel: do not rename module symbols with kallsyms enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30759 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
55d98b2a3f
commit
e8cb322296
2
rules.mk
2
rules.mk
@ -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" \
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user