summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-arch.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-08-19 10:44:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-24 23:46:57 +0100
commitaced11f4dc8fb4f217360198e8c4cda2cdf620e0 (patch)
tree709277d5804d62b9a52ca30618d5d11bbc3e0739 /meta/classes/kernel-arch.bbclass
parenta6a0251f07262a732c790ec2857a1bad40f8617f (diff)
downloadpoky-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 'meta/classes/kernel-arch.bbclass')
-rw-r--r--meta/classes/kernel-arch.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 66508708a9..211b72bee6 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -53,7 +53,7 @@ HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
53TARGET_AR_KERNEL_ARCH ?= "" 53TARGET_AR_KERNEL_ARCH ?= ""
54HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}" 54HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}"
55 55
56KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH}" 56KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH} -fuse-ld=bfd"
57KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}" 57KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}"
58KERNEL_AR = "${CCACHE}${HOST_PREFIX}ar ${HOST_AR_KERNEL_ARCH}" 58KERNEL_AR = "${CCACHE}${HOST_PREFIX}ar ${HOST_AR_KERNEL_ARCH}"
59 59