<div dir="ltr">On 19 August 2015 at 20:59, Nathan Lynch <span dir="ltr">&lt;<a href="mailto:Nathan_Lynch@mentor.com" target="_blank">Nathan_Lynch@mentor.com</a>&gt;</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>
&gt; We redefine LD to point to ld.bfd when building kernel, which works in<br>
&gt; most cases since kbuild system calls out for bare LD most of the time,<br>
&gt; however some of newer kernels e.g. 4.1+ have some code added which can<br>
&gt; call gcc directly to do the linking job e.g. arm vdso code<br>
&gt;<br>
&gt; This causes build failures when we have configured the default cross<br>
&gt; toolchain to use gold linker as default. Errors like<br>
&gt;<br>
&gt; BFD: arch/arm/vdso/vdso.so: Not enough room for program headers, try<br>
&gt; linking with -N<br>
&gt; | arm-angstrom-linux-gnueabi-objcopy:arch/arm/vdso/vdso.so[.hash]: Bad<br>
&gt; value<br>
&gt;<br>
&gt; start happening.<br>
&gt;<br>
&gt; 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 &lt;<a href="mailto:nathan_lynch@mentor.com">nathan_lynch@mentor.com</a>&gt;<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&#39;ing Bruce.</div><div><br></div><div>I&#39;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&#39;s patch. :)</div><div><br></div><div>Ross</div></div></div></div>