All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux-ti33x-psp 3.2: avoid gold linker for Thumb2 kernel
@ 2012-05-11  2:41 Denys Dmytriyenko
  2012-05-11  6:46 ` Koen Kooi
  0 siblings, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2012-05-11  2:41 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@ti.com>

BeagleBone kernel is required to be built in Thumb2 mode for fast boot.
Gold linker is not yet perfect for this, giving an internal error:

| arm-linux-gnueabi-ld: internal error in thumb_branch_common, at .../binutils-cross-2.22-r6/binutils-2.22/gold/arm.cc:4149

While this fix can be put in generic linux.inc for all the kernels, it's
better to test the Gold linker out as much as possible and only disable it
for known issues, like this one (until it gets fixed, of course).

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb
index d1dfaaf..0f44a95 100644
--- a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb
+++ b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb
@@ -22,6 +22,8 @@ SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=http;b
 
 SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"
 
+KERNEL_LDSUFFIX_beaglebone = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '.bfd', '', d)}"
+
 do_compile_prepend() {
 	cp ${WORKDIR}/am335x-pm-firmware.bin ${S}/firmware/
 }
-- 
1.7.7



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-16  1:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11  2:41 [PATCH] linux-ti33x-psp 3.2: avoid gold linker for Thumb2 kernel Denys Dmytriyenko
2012-05-11  6:46 ` Koen Kooi
2012-05-12  1:21   ` Khem Raj
2012-05-16  0:11     ` Denys Dmytriyenko
2012-05-16  1:32       ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.