[U-Boot] [PATCH] arm: Handle .gnu.hash section in ldscripts
Albert ARIBAUD
albert.u.boot at aribaud.net
Mon Apr 7 11:43:21 CEST 2014
Hi Andreas,
On Mon, 27 Jan 2014 05:48:11 +0100, Andreas Färber <afaerber at suse.de>
wrote:
> 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*) }
Applied to u-boot-arm/master, thanks!
Amicalement,
--
Albert.
More information about the U-Boot
mailing list