[Aboriginal] Fun with TLS [was requires approval]
David Halls
dahalls at gmail.com
Tue Nov 4 01:21:32 PST 2014
So the problem I have now is that GCC spins when compiling anything (inside
QEMU)
:(
On 3 November 2014 22:40, David Halls <dahalls at gmail.com> wrote:
> Doing this in nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S:
>>
>> + .hidden __fork_generation
>> .comm __fork_generation, 4, 4
>>
>> fixes the compile problem - have to hide __fork_generation in the
>> assembly, like the C declaration does.
>> (I have yet to test the TLS stuff in the image.)
>>
>>
> I no longer get the TLS warning on x86_64. FYI this I what I did:
>
> Applied the patch above (added .hidden __fork_generation).
>
> Add these lines to sources/baseconfig-uClibc:
>
> UCLIBC_HAS_TLS=y
> UCLIBC_HAS_STDIO_FUTEXES=y
> UCLIBC_HAS_SSP=y
>
> (I needed SSP to compile Perl).
>
> Remove this line from sources/targets/x86_64:
>
> LINUXTHREADS_OLD=y
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20141104/06ccc756/attachment-0002.htm>
More information about the Aboriginal
mailing list