projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf508f0
)
kernel: do not rename module symbols with kallsyms enabled
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 1 Mar 2012 09:58:03 +0000
(09:58 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 1 Mar 2012 09:58:03 +0000
(09:58 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30759
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
rules.mk
patch
|
blob
|
history
scripts/strip-kmod.sh
patch
|
blob
|
history
diff --git
a/rules.mk
b/rules.mk
index
79a2a9f
..
45ef87c
100644
(file)
--- a/
rules.mk
+++ b/
rules.mk
@@
-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
68da9e9
..
57207e3
100755
(executable)
--- 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