1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

kernel: improve profiling support, keep static symbols when profiling is enabled

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30964 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2012-03-17 13:03:14 +00:00
parent f7aa21af67
commit d16a17a54c
3 changed files with 7 additions and 3 deletions

View File

@@ -12,7 +12,11 @@ MODULE="$1"
}
ARGS=
[ -n "$KEEP_SYMBOLS" ] || ARGS="-x -G __this_module --strip-unneeded"
if [ -n "$KEEP_SYMBOLS" ]; then
ARGS="-X --strip-debug"
else
ARGS="-x -G __this_module --strip-unneeded"
fi
${CROSS}objcopy \
-R .comment \