<div><br></div><div><br><div class="gmail_quote"><div dir="auto">On Sun, Jun 17, 2018 at 2:17 AM Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>> 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>
> From: Mingli Yu <<a href="mailto:Mingli.Yu@windriver.com" target="_blank">Mingli.Yu@windriver.com</a>><br>
> <br>
> Set .file section explicitly for .S files to avoid<br>
> the linker introduces the host path in symbols for<br>
> object files whose source file is .S<br>
> Otherwise, there is a host path in the symbols as<br>
> below:<br>
> $ readelf --wide --symbols /my-build/boost/1.67.0-<br>
> r0/boost_1_67_0/x86_64-poky-<br>
> linux/boost/bin.v2/libs/context/build/aca09349fdb84d131321425f6c3a38e<br>
> d/libboost_context.so.1.67.0<br>
> 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS /my-build/boost/1.67.0-<br>
> r0/boost_1_67_0/x86_64-poky-<br>
> linux/boost/bin.v2/libs/context/build/aca09349fdb84d131321425f6c3a38e<br>
> d/asm/make_x86_64_sysv_elf_gas.o<br>
> <br>
> [YOCTO #12708]<br>
> <br>
> Signed-off-by: Mingli Yu <<a href="mailto:Mingli.Yu@windriver.com" target="_blank">Mingli.Yu@windriver.com</a>><br>
> <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>