aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-17 13:03:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-17 13:03:14 +0000
commit7b609a31bede49a725e79324b49a16b0d31a9323 (patch)
treebfc0cc2f3311b447eb90ca5115bb607a3fefb1af /scripts
parent9b60eb478ae4be622b4981058af6a1817539cddc (diff)
downloadupstream-7b609a31bede49a725e79324b49a16b0d31a9323.tar.gz
upstream-7b609a31bede49a725e79324b49a16b0d31a9323.tar.bz2
upstream-7b609a31bede49a725e79324b49a16b0d31a9323.zip
kernel: improve profiling support, keep static symbols when profiling is enabled
SVN-Revision: 30964
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/strip-kmod.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh
index 789364f97b..2a75e39821 100755
--- a/scripts/strip-kmod.sh
+++ b/scripts/strip-kmod.sh
@@ -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 \