Some more on TLS

Alexander Kabaev kabaev at mail.ru
Sat Jul 19 06:54:12 PDT 2003


On Fri, 18 Jul 2003 21:56:25 -0700
Marcel Moolenaar <marcel at xcllnt.net> wrote:

> Gang,
> 
> A quick test with our in-tree bits revealed:
> 
> o  There's no compiler support for TLS on sparc64.

This might be, need to test.

> o  There's no assembler support for TLS on i386 and amd64.

amd64 is new and TLS is probably not activated enabled in binutils yet.

i386 assebmly thing: what do you mean?

% cat test.c 
       .section ".tdata","awT", at progbits
foo:    .long   25
        .text
        movl    %gs:0, %eax
        leal    foo at TLSGD(,%ebx,1), %eax
        leal    foo at TLSLDM(%ebx), %eax
        leal    foo at DTPOFF(%eax), %edx
        movl    foo at GOTTPOFF(%ebx), %eax
        subl    foo at GOTTPOFF(%ebx), %eax
        addl    foo at GOTNTPOFF(%ebx), %eax
        movl    foo at INDNTPOFF, %eax
        movl    $foo at TPOFF, %eax
        subl    $foo at TPOFF, %eax
        leal    foo at NTPOFF(%ecx), %eax

% as test.s
% 


> This means that only the toolchain on alpha and ia64 support TLS
> completely.
> 
> FYI,
> 
> -- 
>  Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net
> _______________________________________________
> freebsd-threads at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to
> "freebsd-threads-unsubscribe at freebsd.org"


More information about the freebsd-threads mailing list