From 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7 Mon Sep 17 00:00:00 2001 From: Albert ARIBAUD Date: Thu, 7 Nov 2013 14:21:46 +0100 Subject: arm: keep all sections in ELF file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current LDS files /DISCARD/ a lot of sections when linking ELF files, causing diagnostic tools such as readelf or objdump to produce partial output. Keep all section at link stage, filter only at objcopy time so that .bin remains minimal. Signed-off-by: Albert ARIBAUD Reviewed-by: Benoît Thébaudeau --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1f499c5ec8..af0ad5744e 100644 --- a/Makefile +++ b/Makefile @@ -393,7 +393,7 @@ $(obj)u-boot.hex: $(obj)u-boot $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ $(obj)u-boot.srec: $(obj)u-boot - $(OBJCOPY) -O srec $< $@ + $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ $(obj)u-boot.bin: $(obj)u-boot $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ -- cgit v1.2.1