diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-01 15:13:26 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-01 15:13:26 +0000 |
commit | 236dd9d9a2c7563926ca0366e7dba3b60d89bcae (patch) | |
tree | 96ec5c72f8acff2fbc383f3e45e112da3557c36e /scripts | |
parent | edc3ad9100856c582e55f6809df24167e0866535 (diff) | |
download | upstream-236dd9d9a2c7563926ca0366e7dba3b60d89bcae.tar.gz upstream-236dd9d9a2c7563926ca0366e7dba3b60d89bcae.tar.bz2 upstream-236dd9d9a2c7563926ca0366e7dba3b60d89bcae.zip |
kernel: keep more symbols in the kernel modules when doing profiling
SVN-Revision: 30762
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/strip-kmod.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 57207e3ae6..789364f97b 100755 --- a/scripts/strip-kmod.sh +++ b/scripts/strip-kmod.sh @@ -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" |