Btw for those having interest in testing this also for 64-bit, use the
following small testcase port:

.section .text.startup,"x"
.globl main
.def main; .scl 2; .type 32; .endef
main:
subq $40, %rsp
movl _tls_index, %eax
movq %gs:88, %rcx
shlq $3, %rax
addq %rax, %rcx
movq (%rcx), %rcx
movl _tlsVar1@SECREL32(%rcx), %edx
movl _tlsVar2@SECREL32(%rcx), %eax
leaq _.str(%rip), %rcx
mov %rax, %r8
call printf
xorq %rax, %rax
addq $40, %rsp
ret

.section .tls$AAB,"w"
.globl _tlsVar1
.align 4
_tlsVar1:
.long 0xcafebabe

.globl _tlsVar2
.align 4
_tlsVar2:
.long 0xdeadbeef

.section .rdata,"dr"
_.str:
.asciz "%x, %x\n"

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to