<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 3 November 2014 07:18, David Halls <span dir="ltr"><<a href="mailto:dahalls@gmail.com" target="_blank">dahalls@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.7272720336914px">Sure:</div><div style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></div><div style="font-family:arial,sans-serif;font-size:12.7272720336914px"><div>(x86_64:1) /home/source/go/src # cat test.c</div><div>__thread int foo;</div><div><br></div><div>int main(int argc, char**argv)</div><div>{</div><div>}</div><div><br></div><div>(x86_64:1) /home/source/go/src # gcc test.c</div><div>(x86_64:1) /home/source/go/src # ./a.out</div></div></div></span><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 1 November 2014 23:54, Rob Landley <span dir="ltr"><<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>On 11/01/14 17:03, David Halls wrote:<br>
> Thanks Rob.<br>
><br>
> Regarding the TLS problem, I added:<br>
><br>
>     UCLIBC_HAS_TLS=y<br>
><br>
> to baseconfig-uClibc but am still getting:<br>
><br>
>     Program uses unsupported TLS data!<br>
><br>
> It seems the code in ldso.c which does this checks for USE_TLS, which<br>
> should be set because native threads are configured, right?<br>
<br>
</div></div>Ah, the old "has" vs "use" nonsense uClibc kept doing:<br>
<br>
<a href="http://lists.uclibc.org/pipermail/uclibc/2009-July/042818.html" target="_blank">http://lists.uclibc.org/pipermail/uclibc/2009-July/042818.html</a><br>
<br>
Is there a reasonably small tls test program I can use to check if I've<br>
enabled it right? I can take another crack at it, but don't currently<br>
know what success looks like so can't tell when I've done it.<br>
<span><font color="#888888"><br>
Rob<br>
</font></span></blockquote></div></div></div><br></div></blockquote><div><br></div><div>If I remove this line from sources/targets/x86_64:</div><div><br></div><div>LINUXTHREADS_OLD=y</div><div><br></div><div>then ntpl tries to build but I get:</div><div><br></div><div><div>/home/david/Downloads/aboriginal-1.2.9/build/simple-cross-compiler-x86_64/lib/../x86_64-unknown-linux/bin/ld: libpthread/nptl/libpthread_so.a(pthread_once.oS): relocation R_X86_64_PC32 against `__fork_generation' can not be used when making a shared object; recompile with -fPIC</div><div>/home/david/Downloads/aboriginal-1.2.9/build/simple-cross-compiler-x86_64/lib/../x86_64-unknown-linux/bin/ld: final link failed: Bad value</div><div>collect2: ld returned 1 exit status</div><div>libpthread/nptl/Makefile.in:78: recipe for target 'lib/libpthread.so' failed</div><div>make: *** [lib/libpthread.so] Error 1</div></div><div><br></div></div></div></div>