<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><div class="gmail_extra"><br><div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">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 class="HOEnZb"><font color="#888888"><br>
Rob<br>
</font></span></blockquote></div><br></div>