diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-17 13:03:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-17 13:03:14 +0000 |
commit | 7b609a31bede49a725e79324b49a16b0d31a9323 (patch) | |
tree | bfc0cc2f3311b447eb90ca5115bb607a3fefb1af /scripts/strip-kmod.sh | |
parent | 9b60eb478ae4be622b4981058af6a1817539cddc (diff) | |
download | upstream-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/strip-kmod.sh')
-rwxr-xr-x | scripts/strip-kmod.sh | 6 |
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 \ |