mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
kernel: keep more symbols in the kernel modules when doing profiling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30762 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
08faa98372
commit
ba66a4b961
4
rules.mk
4
rules.mk
@ -220,7 +220,9 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
RSTRIP:= \
|
RSTRIP:= \
|
||||||
export CROSS="$(TARGET_CROSS)" $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1); \
|
export CROSS="$(TARGET_CROSS)" \
|
||||||
|
$(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1) \
|
||||||
|
$(if $(CONFIG_KERNEL_PROFILING),KEEP_SYMBOLS=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" \
|
||||||
|
@ -11,16 +11,18 @@ MODULE="$1"
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARGS=
|
||||||
|
[ -n "$KEEP_SYMBOLS" ] || ARGS="-x -G __this_module --strip-unneeded"
|
||||||
|
|
||||||
${CROSS}objcopy \
|
${CROSS}objcopy \
|
||||||
--strip-unneeded \
|
|
||||||
-R .comment \
|
-R .comment \
|
||||||
-R .pdr \
|
-R .pdr \
|
||||||
-R .mdebug.abi32 \
|
-R .mdebug.abi32 \
|
||||||
-R .note.gnu.build-id \
|
-R .note.gnu.build-id \
|
||||||
-R .gnu.attributes \
|
-R .gnu.attributes \
|
||||||
-R .reginfo \
|
-R .reginfo \
|
||||||
-G __this_module \
|
$ARGS \
|
||||||
-x "$MODULE" "$MODULE.tmp"
|
"$MODULE" "$MODULE.tmp"
|
||||||
|
|
||||||
[ -n "$NO_RENAME" ] && {
|
[ -n "$NO_RENAME" ] && {
|
||||||
mv "${MODULE}.tmp" "$MODULE"
|
mv "${MODULE}.tmp" "$MODULE"
|
||||||
|
Loading…
Reference in New Issue
Block a user