[Aboriginal] Aboriginal post from dahalls at gmail.com requires approval

David Halls dahalls at gmail.com
Mon Nov 3 01:14:59 PST 2014


On 3 November 2014 07:18, David Halls <dahalls at gmail.com> wrote:

> Sure:
>
> (x86_64:1) /home/source/go/src # cat test.c
> __thread int foo;
>
> int main(int argc, char**argv)
> {
> }
>
> (x86_64:1) /home/source/go/src # gcc test.c
> (x86_64:1) /home/source/go/src # ./a.out
>
> On 1 November 2014 23:54, Rob Landley <rob at landley.net> wrote:
>
>> On 11/01/14 17:03, David Halls wrote:
>> > Thanks Rob.
>> >
>> > Regarding the TLS problem, I added:
>> >
>> >     UCLIBC_HAS_TLS=y
>> >
>> > to baseconfig-uClibc but am still getting:
>> >
>> >     Program uses unsupported TLS data!
>> >
>> > It seems the code in ldso.c which does this checks for USE_TLS, which
>> > should be set because native threads are configured, right?
>>
>> Ah, the old "has" vs "use" nonsense uClibc kept doing:
>>
>> http://lists.uclibc.org/pipermail/uclibc/2009-July/042818.html
>>
>> Is there a reasonably small tls test program I can use to check if I've
>> enabled it right? I can take another crack at it, but don't currently
>> know what success looks like so can't tell when I've done it.
>>
>> Rob
>>
>
>
If I remove this line from sources/targets/x86_64:

LINUXTHREADS_OLD=y

then ntpl tries to build but I get:

/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
/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
collect2: ld returned 1 exit status
libpthread/nptl/Makefile.in:78: recipe for target 'lib/libpthread.so' failed
make: *** [lib/libpthread.so] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20141103/ba68f173/attachment-0002.htm>


More information about the Aboriginal mailing list