<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 8 August 2016 at 16:59, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":37i" class="a3s aXjCH m1566ae22eb3a0c11">FWIW, I think the connmand segfault on mips and powerpc is hinted at<br>
with this bug:<br>
<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1570055" rel="noreferrer" target="_blank">https://bugs.launchpad.net/<wbr>ubuntu/+source/lua5.3/+bug/<wbr>1570055</a><br>
<br>
connmand is a binary linked with a linker version-script. If I build<br>
connmand without that option, it doesn&#39;t segfault, at least on mips.<br>
<br>
The binutils manuals say you shouldn&#39;t build binaries with version<br>
scripts:<br>
<br>
<a href="http://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_node/ld_25.html" rel="noreferrer" target="_blank">http://ftp.gnu.org/old-gnu/<wbr>Manuals/ld-2.9.1/html_node/ld_<wbr>25.html</a><br>
<br>
Its suspected connman might do this to limit the function exposure to<br>
its plugins.<br>
<br>
Now sure exactly what needs to happen here without more research but it<br>
certainly hits at where the problem is. I suspect its the same issue on<br>
ppc.</div></blockquote></div><br>I&#39;ve verified that with binutils 2.26 on x86-64, a minimal test case for an executable using a version script to limit exported symbols to dlopen()d modules does in fact work.  A toolchain is building now to see what happens in different environments.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>