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

Max Filippov jcmvbkbc at gmail.com
Tue Sep 22 17:38:06 CEST 2015


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?

-- Max

More information about the devel mailing list