<div dir="ltr">On 19 August 2015 at 20:59, Nathan Lynch <span dir="ltr"><<a href="mailto:Nathan_Lynch@mentor.com" target="_blank">Nathan_Lynch@mentor.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/19/2015 12:44 PM, Khem Raj wrote:<br>
> We redefine LD to point to ld.bfd when building kernel, which works in<br>
> most cases since kbuild system calls out for bare LD most of the time,<br>
> however some of newer kernels e.g. 4.1+ have some code added which can<br>
> call gcc directly to do the linking job e.g. arm vdso code<br>
><br>
> This causes build failures when we have configured the default cross<br>
> toolchain to use gold linker as default. Errors like<br>
><br>
> BFD: arch/arm/vdso/vdso.so: Not enough room for program headers, try<br>
> linking with -N<br>
> | arm-angstrom-linux-gnueabi-objcopy:arch/arm/vdso/vdso.so[.hash]: Bad<br>
> value<br>
><br>
> start happening.<br>
><br>
> With this patch we force gcc to choose bfd linker as well<br>
<br>
<br>
</span>This is fixed upstream as of:<br>
<br>
commit d2b30cd4b7223a96e606dfc8120626f66d81e091<br>
Author: Nathan Lynch <<a href="mailto:nathan_lynch@mentor.com">nathan_lynch@mentor.com</a>><br>
Date: Wed Jun 3 00:41:15 2015 +0100<br>
<br>
ARM: 8384/1: VDSO: force use of BFD linker<br>
<br>
which should make it to 4.1-stable soon.</blockquote><div><br></div><div> CC'ing Bruce.</div><div><br></div><div>I'll stage the fix from Khem in my master-unde-test branch. Bruce: if you end up merging this fix into the oe-core kernels, please remind me to revert Khem's patch. :)</div><div><br></div><div>Ross</div></div></div></div>