strip kernel modules more aggressively: make all global symbols local, rename all symbols in the symbol table to make them compress better

SVN-Revision: 30662
This commit is contained in:
Felix Fietkau
2012-02-20 17:38:26 +00:00
parent c918810414
commit c2590fe930
3 changed files with 41 additions and 21 deletions

View File

@@ -219,9 +219,10 @@ else
endif
endif
RSTRIP:= \
export CROSS="$(TARGET_CROSS)"; \
NM="$(TARGET_CROSS)nm" \
STRIP="$(STRIP)" \
STRIP_KMOD="$(TARGET_CROSS)strip --strip-unneeded -R .comment -R .pdr -R .mdebug.abi32 -R .note.gnu.build-id -R .gnu.attributes -R .reginfo -x" \
STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \
$(SCRIPT_DIR)/rstrip.sh
endif