[OE-core] [PATCH] kernel-arch: Force BFD kernel when using gcc for linking

Nathan Lynch Nathan_Lynch at mentor.com
Wed Aug 19 19:59:08 UTC 2015


On 08/19/2015 12:44 PM, Khem Raj wrote:
> We redefine LD to point to ld.bfd when building kernel, which works in
> most cases since kbuild system calls out for bare LD most of the time,
> however some of newer kernels e.g. 4.1+ have some code added which can
> call gcc directly to do the linking job e.g. arm vdso code
> 
> This causes build failures when we have configured the default cross
> toolchain to use gold linker as default. Errors like
> 
> BFD: arch/arm/vdso/vdso.so: Not enough room for program headers, try
> linking with -N
> | arm-angstrom-linux-gnueabi-objcopy:arch/arm/vdso/vdso.so[.hash]: Bad
> value
> 
> start happening.
> 
> With this patch we force gcc to choose bfd linker as well


This is fixed upstream as of:

commit d2b30cd4b7223a96e606dfc8120626f66d81e091
Author: Nathan Lynch <nathan_lynch at mentor.com>
Date:   Wed Jun 3 00:41:15 2015 +0100

    ARM: 8384/1: VDSO: force use of BFD linker

which should make it to 4.1-stable soon.




More information about the Openembedded-core mailing list