diff options
| author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-03-17 13:03:14 +0000 | 
|---|---|---|
| committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-03-17 13:03:14 +0000 | 
| commit | d16a17a54c526cecd8c411334a2d8c615fe32f71 (patch) | |
| tree | 49ae19c7099fa0c37df88a4c7c1644fcff32356a /scripts | |
| parent | f7aa21af67c29fa2a0345fc0ab5b55fd66b38cce (diff) | |
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
Diffstat (limited to 'scripts')
| -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 789364f97..2a75e3982 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 \  | 
