Date: Sat, 19 Jul 2003 09:54:06 -0400 From: Alexander Kabaev <kabaev@mail.ru> To: Marcel Moolenaar <marcel@xcllnt.net> Cc: threads@freebsd.org Subject: Re: Some more on TLS Message-ID: <20030719095406.02c51beb.kabaev@mail.ru> In-Reply-To: <20030719045625.GB45759@dhcp01.pn.xcllnt.net> References: <20030719045625.GB45759@dhcp01.pn.xcllnt.net>
index | next in thread | previous in thread | raw e-mail
On Fri, 18 Jul 2003 21:56:25 -0700
Marcel Moolenaar <marcel@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",@progbits
foo: .long 25
.text
movl %gs:0, %eax
leal foo@TLSGD(,%ebx,1), %eax
leal foo@TLSLDM(%ebx), %eax
leal foo@DTPOFF(%eax), %edx
movl foo@GOTTPOFF(%ebx), %eax
subl foo@GOTTPOFF(%ebx), %eax
addl foo@GOTNTPOFF(%ebx), %eax
movl foo@INDNTPOFF, %eax
movl $foo@TPOFF, %eax
subl $foo@TPOFF, %eax
leal foo@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@xcllnt.net
> _______________________________________________
> freebsd-threads@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to
> "freebsd-threads-unsubscribe@freebsd.org"
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030719095406.02c51beb.kabaev>
