summaryrefslogtreecommitdiffstats
path: root/scripts/strip-kmod.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-02-01 13:33:33 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-02-01 13:33:33 +0000
commit86625a148abb04a1e6fee39ddab48256b65fa1f4 (patch)
treefd6a3e28e32f1adf5e61d42cd8ea2b3348547731 /scripts/strip-kmod.sh
parenta8c2701866befcc3920628bc69e978a64dc664ab (diff)
downloadmaster-31e0f0ae-86625a148abb04a1e6fee39ddab48256b65fa1f4.tar.gz
master-31e0f0ae-86625a148abb04a1e6fee39ddab48256b65fa1f4.tar.bz2
master-31e0f0ae-86625a148abb04a1e6fee39ddab48256b65fa1f4.zip
scripts/strip-kmod.sh: remove a few extra sections to slightly reduce kernel module size
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48608
Diffstat (limited to 'scripts/strip-kmod.sh')
-rwxr-xr-xscripts/strip-kmod.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh
index e3f13bee47..313015b909 100755
--- a/scripts/strip-kmod.sh
+++ b/scripts/strip-kmod.sh
@@ -28,6 +28,8 @@ ${CROSS}objcopy \
-R .mdebug.abi32 \
-R .gnu.attributes \
-R .reginfo \
+ -R .MIPS.abiflags \
+ -R .note.GNU-stack \
$ARGS \
"$MODULE" "$MODULE.tmp"