MIPS: strip the un-needed sections of vmlinuz
authorWu Zhangjin <wuzhangjin@gmail.com>
Wed, 16 Jun 2010 07:52:21 +0000 (15:52 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:34 +0000 (13:26 +0100)
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>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1383/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/boot/compressed/Makefile

index 5831490432930e5bc4a6e8b5ec472831e48a4b8e..ed9bb709c9a3816a4738d0ceef91db8c8de20cd4 100644 (file)
@@ -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