]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-arch: Always use ld.bfd to link the kernel
authorPhil Blundell <pb@pbcl.net>
Tue, 23 Apr 2013 16:47:29 +0000 (17:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Apr 2013 11:03:49 +0000 (12:03 +0100)
The kernel's penchant for custom linker scripts means that it doesn't
generally get on very well with gold.  Make sure we are using the BFD
linker here no matter what the distro default is set to.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/kernel-arch.bbclass

index b3b71bacec79b917733ed6fad557483eebf59f43..4a140ebdafb1515f7746f24e048d22b269eb1c56 100644 (file)
@@ -53,6 +53,6 @@ TARGET_AR_KERNEL_ARCH ?= ""
 HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}"
 
 KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH}"
-KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld ${HOST_LD_KERNEL_ARCH}"
+KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}"
 KERNEL_AR = "${CCACHE}${HOST_PREFIX}ar ${HOST_AR_KERNEL_ARCH}"