[OE-core] [PATCH] u-boot: Avoid issues with binutils-2.25

Otavio Salvador otavio at ossystems.com.br
Tue Apr 7 15:18:24 UTC 2015


On Tue, Apr 7, 2015 at 11:49 AM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> Add a patch based on one from Zhenhua Luo <zhenhua.luo at freescale.com>
> in the meta-fsl-ppc layer to avoid build failures for u-boot with the
> mpc8315e-rdb machine with binutils 2.25.
>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>
> diff --git a/meta/recipes-bsp/u-boot/u-boot/0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch b/meta/recipes-bsp/u-boot/u-boot/0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch
> new file mode 100644
> index 0000000..5e9d569
> --- /dev/null
> +++ b/meta/recipes-bsp/u-boot/u-boot/0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch
> @@ -0,0 +1,188 @@
> +From 9ba002f1b1afc7af84a352f4ecab32a30d7ba353 Mon Sep 17 00:00:00 2001
> +From: Zhenhua Luo <zhenhua.luo at freescale.com>
> +Date: Mon, 9 Feb 2015 18:33:56 +0800
> +Subject: [PATCH] powerpc/cpu/*/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_
> + definition
> +
> +In binutils-2.25, the _GLOBAL_OFFSET_TABLE_ symbols defined by PROVIDE in
> +u-boot.lds overrides the linker built-in symbols
> +(https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=b893397a4b1316610f49819344817715e4305de9),
> +so the linker is treating _GLOBAL_OFFSET_TABLE_ as a definition into the .reloc section.
> +
> +To align with the change of binutils-2.25, the _GLOBAL_OFFSET_TABLE_ symbol
> +should not be defined in sections, and the symbols in linker generated .got
> +section should be used(https://sourceware.org/ml/binutils/2008-09/msg00122.html).
> +
> +Fixed the following build errors with binutils-2.25:
> +| powerpc-poky-linux-gnuspe-ld.bfd: _GLOBAL_OFFSET_TABLE_ not defined in linker created .got
> +
> +Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>

The Upstream-Status field is missing.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list