From c2590fe9309910c759a9b8a5dbcd7facffe8d982 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 20 Feb 2012 17:38:26 +0000 Subject: 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 --- rules.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 474c0e2..79a2a9f 100644 --- a/rules.mk +++ b/rules.mk @@ -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 -- cgit v1.1