diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2010-06-16 03:52:21 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:26:34 -0400 |
commit | 5089ca9d31b0250f42ccd0e0a41b3547f22a20a0 (patch) | |
tree | 5a216a1cfffcae2b29508a940e3420755c3a9cfd /arch/mips/boot | |
parent | 3c4b7fde941639bd96c7d0429b4da925f07be75f (diff) |
MIPS: strip the un-needed sections of vmlinuz
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>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r-- | 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 583149043293..ed9bb709c9a3 100644 --- a/arch/mips/boot/compressed/Makefile +++ b/arch/mips/boot/compressed/Makefile | |||
@@ -65,8 +65,11 @@ vmlinuzobjs-y += $(obj)/piggy.o | |||
65 | 65 | ||
66 | quiet_cmd_zld = LD $@ | 66 | quiet_cmd_zld = LD $@ |
67 | cmd_zld = $(LD) $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T $< $(vmlinuzobjs-y) -o $@ | 67 | cmd_zld = $(LD) $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T $< $(vmlinuzobjs-y) -o $@ |
68 | quiet_cmd_strip = STRIP $@ | ||
69 | cmd_strip = $(STRIP) -s $@ | ||
68 | vmlinuz: $(src)/ld.script $(vmlinuzobjs-y) $(obj)/calc_vmlinuz_load_addr | 70 | vmlinuz: $(src)/ld.script $(vmlinuzobjs-y) $(obj)/calc_vmlinuz_load_addr |
69 | $(call cmd,zld) | 71 | $(call cmd,zld) |
72 | $(call cmd,strip) | ||
70 | 73 | ||
71 | # | 74 | # |
72 | # Some DECstations need all possible sections of an ECOFF executable | 75 | # Some DECstations need all possible sections of an ECOFF executable |