From 7b609a31bede49a725e79324b49a16b0d31a9323 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 17 Mar 2012 13:03:14 +0000 Subject: kernel: improve profiling support, keep static symbols when profiling is enabled SVN-Revision: 30964 --- scripts/strip-kmod.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 789364f..2a75e39 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 \ -- cgit v1.1