summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-11-07 14:21:46 +0100
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-12-07 06:53:58 +0100
commit47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7 (patch)
treeee44012f0dbdab4ea6f4f4434dfa85974b659329 /Makefile
parent3064d599afaed1e601479efa372a6e83d4ea9deb (diff)
downloadblackbird-obmc-uboot-47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7.tar.gz
blackbird-obmc-uboot-47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7.zip
arm: keep all sections in ELF file
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 <albert.u.boot@aribaud.net> Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 $< $@
OpenPOWER on IntegriCloud