<div><br></div><div><br><div class="gmail_quote"><div dir="auto">On Sun, Jun 17, 2018 at 2:17 AM Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2018-06-15 at 16:35 +0800, <a href="mailto:mingli.yu@windriver.com" target="_blank">mingli.yu@windriver.com</a> wrote:<br>
&gt; From: Mingli Yu &lt;<a href="mailto:Mingli.Yu@windriver.com" target="_blank">Mingli.Yu@windriver.com</a>&gt;<br>
&gt; <br>
&gt; Set .file section explicitly for .S files to avoid<br>
&gt; the linker introduces the host path in symbols for<br>
&gt; object files whose source file is .S<br>
&gt; Otherwise, there is a host path in the symbols as<br>
&gt; below:<br>
&gt; $ readelf --wide --symbols /my-build/boost/1.67.0-<br>
&gt; r0/boost_1_67_0/x86_64-poky-<br>
&gt; linux/boost/bin.v2/libs/context/build/aca09349fdb84d131321425f6c3a38e<br>
&gt; d/libboost_context.so.1.67.0<br>
&gt; 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS /my-build/boost/1.67.0-<br>
&gt; r0/boost_1_67_0/x86_64-poky-<br>
&gt; linux/boost/bin.v2/libs/context/build/aca09349fdb84d131321425f6c3a38e<br>
&gt; d/asm/make_x86_64_sysv_elf_gas.o<br>
&gt; <br>
&gt; [YOCTO #12708]<br>
&gt; <br>
&gt; Signed-off-by: Mingli Yu &lt;<a href="mailto:Mingli.Yu@windriver.com" target="_blank">Mingli.Yu@windriver.com</a>&gt;<br>
&gt; <br>
Thanks for working through this, the final result is a much better fix!</blockquote><div dir="auto"><br></div><div dir="auto">If we add this directive to all the .S files thereĀ </div><div dir="auto">Then it can be up streamed too</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Cheers,<br>
<br>
Richard<br>
</blockquote></div></div>