[U-Boot] [PATCH] arm: Handle .gnu.hash section in ldscripts

Andreas Färber afaerber at suse.de
Mon Jan 27 05:48:11 CET 2014


Avoids "could not find output section .gnu.hash" ld.bfd errors on openSUSE.

Cc: Albert Aribaud <albert.u.boot at aribaud.net>
Cc: Tom Rini <trini at ti.com>
Signed-off-by: Andreas Färber <afaerber at suse.de>
---
 More changes like this may be needed, but these I compile-tested with
 v2014.01 (regression from v2013.10). colibri_t20_iris was runtime-tested.
 GCC 4.8.2 r206511, binutils 2.24

 arch/arm/cpu/u-boot.lds    | 1 +
 board/ti/am335x/u-boot.lds | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds
index 4da5d24..fb8bfaf 100644
--- a/arch/arm/cpu/u-boot.lds
+++ b/arch/arm/cpu/u-boot.lds
@@ -97,6 +97,7 @@ SECTIONS
 	.dynamic : { *(.dynamic*) }
 	.plt : { *(.plt*) }
 	.interp : { *(.interp*) }
+	.gnu.hash : { *(.gnu.hash) }
 	.gnu : { *(.gnu*) }
 	.ARM.exidx : { *(.ARM.exidx*) }
 	.gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }
diff --git a/board/ti/am335x/u-boot.lds b/board/ti/am335x/u-boot.lds
index 6a734b3..fec4ccf 100644
--- a/board/ti/am335x/u-boot.lds
+++ b/board/ti/am335x/u-boot.lds
@@ -113,6 +113,7 @@ SECTIONS
 	.dynstr : { *(.dynstr*) }
 	.dynamic : { *(.dynamic*) }
 	.hash : { *(.hash*) }
+	.gnu.hash : { *(.gnu.hash) }
 	.plt : { *(.plt*) }
 	.interp : { *(.interp*) }
 	.gnu : { *(.gnu*) }
-- 
1.8.4



More information about the U-Boot mailing list