]> code.ossystems Code Review - meta-freescale.git/commit
u-boot-qoriq: fix the build issue with binutils-2.25
authorZhenhua Luo <zhenhua.luo@freescale.com>
Thu, 12 Feb 2015 07:54:18 +0000 (15:54 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 31 Mar 2015 05:17:05 +0000 (13:17 +0800)
commit70e804bd4ed3f5dd6d501c664bf3a63dad59eefa
tree87cec53e2c92e6b78fb6457994ff3080b105c0c7
parent1afa62312a1c0e7336e5771b6f45c0a4810d9bd7
u-boot-qoriq: fix the build issue with binutils-2.25

Remove _GLOBAL_OFFSET_TABLE_ definition from u-boot/mpc85xx/u-boot*.lds

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

[YOCTO #7145]

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
meta-fsl-ppc/recipes-bsp/u-boot/files/0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch [new file with mode: 0644]
meta-fsl-ppc/recipes-bsp/u-boot/u-boot-qoriq_2014.07.bb