linux-mips
[Top] [All Lists]

[PATCH] MIPS: strip the un-needed sections of vmlinuz

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: strip the un-needed sections of vmlinuz
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Wed, 16 Jun 2010 15:52:21 +0800
Cc: linux-mips@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=/EFG4AiCrkP//cMiirI+V6fF1hO1J4uq7VvhhpVRWV0=; b=K5IHwbt2XkBzjyLl6fTZ/sKq3/BcRT0SmDRkZsEShb3o0lZ6kschqowWIZRL1zGw9A +/D8uH3B4+EVPsQca8zdySxvtfIQfnqP1vc8O/Xbt43crELI9b/rx9cV+GRRyvc3z6FG CKIYuSGV8+HLg4cgubS/SfTEFH7bTb0ZrcCfg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=H86WDO5jPT0VTxVlQjwu8vyecJJ7REg8nSY9zTA07b2qIfX2VeosJJpte7clK/pwJr dKN+4MliaUMAikfSpDWi4Br+1l2p95OCnI65C0o7YysejrSjwowQsJuh8u+lCnkVwX4a 4kOpdsB3yMKw5INhlNYp6AuHrcJKT/fvGpcXo=
In-reply-to: <7a966ffadcf2a4600c098c3ac47ef1f645790946.1276674390.git.wuzhangjin@gmail.com>
References: <7a966ffadcf2a4600c098c3ac47ef1f645790946.1276674390.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Wu Zhangjin <wuzhangjin@gmail.com>

This patch use "strip -s" to strip the .symtab and .strtab sections of
vmlinuz.

Note: This patch is based on http://patchwork.linux-mips.org/patch/1324/

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/boot/compressed/Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/mips/boot/compressed/Makefile 
b/arch/mips/boot/compressed/Makefile
index 9ef6e2f..1910702 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -65,8 +65,11 @@ vmlinuzobjs-y += $(obj)/piggy.o
 
 quiet_cmd_zld = LD      $@
       cmd_zld = $(LD) $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T $< 
$(vmlinuzobjs-y) -o $@
+quiet_cmd_strip = STRIP   $@
+      cmd_strip = $(STRIP) -s $@
 vmlinuz: $(src)/ld.script $(vmlinuzobjs-y) $(obj)/calc_vmlinuz_load_addr
        $(call cmd,zld)
+       $(call cmd,strip)
 
 #
 # Some DECstations need all possible sections of an ECOFF executable
-- 
1.7.0.4


<Prev in Thread] Current Thread [Next in Thread>