TLS on ARM and MIPS

Oleksandr Tymoshenko gonzo at bluezbox.com
Mon Apr 2 21:16:07 UTC 2012


On 02/04/2012 1:31 PM, Jason Evans wrote:
> On Apr 2, 2012, at 11:29 AM, Oleksandr Tymoshenko wrote:
>> On 02/04/2012 11:04 AM, Jason Evans wrote:
>>> I've been working on integrating jemalloc back into FreeBSD's libc, and ran into the lack of TLS on ARM and MIPS.  Is this something that's likely to be addressed soon?  If not, I'm going to have to modify libthr to deal with TSD bootstrapping issues -- FreeBSD's pthreads implementation *loves* to call malloc. =(
>>>
>>> While I'm asking about TLS, it's worth asking whether any of the other platforms still lack TLS support for non-PIC binaries.  If so, that will force the TSD issue anyway.
>>
>> How old is your source base?
>>
>> TLS support for ARM and MIPS has been committed about month ago.
>> Revisions r232577-r232582 and r233106,r233107 fixes for ARM.
>
> I'm currently running sources from March 24, but I don't have ARM or MIPS hardware.  Can we remove the NO_TLS definitions in src/lib/libc/stdlib/malloc.c?  I can't test the result, of course…

How do I test it? Will running buildword on MIPS device with
these changes be sufficient? Or do we have specific tests for it?


More information about the freebsd-arch mailing list