aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/strip-kmod.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/strip-kmod.sh')
-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 \