diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-08-19 10:44:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-24 23:46:57 +0100 |
commit | aced11f4dc8fb4f217360198e8c4cda2cdf620e0 (patch) | |
tree | 709277d5804d62b9a52ca30618d5d11bbc3e0739 /bitbake | |
parent | a6a0251f07262a732c790ec2857a1bad40f8617f (diff) | |
download | poky-aced11f4dc8fb4f217360198e8c4cda2cdf620e0.tar.gz |
kernel-arch: Force BFD kernel when using gcc for linking
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
(From OE-Core rev: 5724e4d245f142ac6fb1ea211503fd220683354d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
0 files changed, 0 insertions, 0 deletions