[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#309193: debian glibc 2.3.2 for i386 does not support TLS




I think, there are 3 debian version of libc for ix86:

linuxthreads    MIN_KERNEL_SUPPORTED := 2.2.0   /lib
nptl            MIN_KERNEL_SUPPORTED := ?????   /lib/tls
nptl+i686       MIN_KERNEL_SUPPORTED := 2.6.0   /lib/tls/i686/cmov/


nptl requires futex and {g,s}et_thread_area syscalls,
see also "man set_thread_area".

linuxthreads implementation has two flavors,
one with and the second one without "floating stacks".
floating stacks requires MIN_KERNEL_SUPPORTED := 2.4.1


__thread should work in "linuxthreads with floating stack" and in nptl

So if you are running sarge with 2.6 kernel, test should pass,
if you are runnig 2.4 kernel test should fail.

IMHO for etch  MIN_KERNEL_SUPPORTED should be bumped to 2.4.1

But I don't know why debian/sysdeps/i386.mk contains "--without-__thread":

libc_extra_config_options = $(extra_config_options) --with-tls --without-__thread


Petr




Reply to: