diff options
Diffstat (limited to 'scripts/strip-kmod.sh')
-rwxr-xr-x | scripts/strip-kmod.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 13e6b58007..e3f13bee47 100755 --- a/scripts/strip-kmod.sh +++ b/scripts/strip-kmod.sh @@ -18,11 +18,14 @@ else ARGS="-x -G __this_module --strip-unneeded" fi +if [ -z "$KEEP_BUILD_ID" ]; then + ARGS="$ARGS -R .note.gnu.build-id" +fi + ${CROSS}objcopy \ -R .comment \ -R .pdr \ -R .mdebug.abi32 \ - -R .note.gnu.build-id \ -R .gnu.attributes \ -R .reginfo \ $ARGS \ |