1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03: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:
nbd
2012-03-01 15:13:26 +00:00
parent 08faa98372
commit ba66a4b961
2 changed files with 8 additions and 4 deletions

View File

@@ -11,16 +11,18 @@ MODULE="$1"
exit 1
}
ARGS=
[ -n "$KEEP_SYMBOLS" ] || ARGS="-x -G __this_module --strip-unneeded"
${CROSS}objcopy \
--strip-unneeded \
-R .comment \
-R .pdr \
-R .mdebug.abi32 \
-R .note.gnu.build-id \
-R .gnu.attributes \
-R .reginfo \
-G __this_module \
-x "$MODULE" "$MODULE.tmp"
$ARGS \
"$MODULE" "$MODULE.tmp"
[ -n "$NO_RENAME" ] && {
mv "${MODULE}.tmp" "$MODULE"