[uclibc-ng-devel] Status of TLS and NPTL support for noMMU

Sergei Poselenov sposelenov at emcraft.com
Tue Sep 22 18:10:13 CEST 2015


Hello Max,

On Tue, 22 Sep 2015 18:38:06 +0300
Max Filippov <jcmvbkbc at gmail.com> wrote:

> Hello,
> 
> I'm trying to build uClibc-based userspace for uclinux. It builds
> and works as long as I keep uClibc single-threaded. If I enable
> TLS and NPTL support first I face build errors (one caused by
> reference to fork from libpthread/nptl/sysdeps/unix/sysv/linux/fork.c,
> other outside uClibc, in the elf2flt, which cannot deal with .tbss
> section overlapping .data section) and then runtime errors
> (an attempt to allocate TLS memory with sbrk which doesn't
> work in uclinux and then inability to initialize TLS data, which I
> haven't tracked yet). All that makes me think that either I'm doing
> something terribly wrong, or TLS + NPTL are not supported by
> uClibc for uclinux.
> 
> So my questions are:
> - are TLS and NPTL supported by uClibc for uclinux?
> - if not, what are the supported threading options?
> 

Try linuxthreads.old, it works for us (0.9.33.2, Cortex-M3/M4. Toolchain is an old
CodeSourcery arm-uclinuxeabi arm-2010q1).

Regards,
Sergei


More information about the devel mailing list