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 --- arch/arm/config.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/config.mk') diff --git a/arch/arm/config.mk b/arch/arm/config.mk index bdabcf407e..fd3e5fb661 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -103,3 +103,6 @@ ALL-y += checkarmreloc # such usage by requiring word relocations. PLATFORM_CPPFLAGS += $(call cc-option, -mword-relocations) endif + +# limit ourselves to the sections we want in the .bin. +OBJCFLAGS += -j .text -j .rodata -j .data -j .u_boot_list -j .rel.dyn -- cgit v1.2.1