search for: msg00409

Displaying 3 results from an estimated 3 matches for "msg00409".

Did you mean: msg00049
2010 Nov 11
0
[LLVMdev] problem with __thread on linux/x86_64
On 9 November 2010 16:42, Jay Foad <jay.foad at gmail.com> wrote: > Hi, > > On Ubuntu Linux/x86_64, I get: > > $ cat t.c > #include <stdio.h> > __thread int i = 7; > int main() { printf("%d\n", i); } > $ clang -o t t.c > $ ./t > Segmentation fault > > (gdb) disas > Dump of assembler code for function main: >   0x0000000000400560
2010 Nov 11
2
[LLVMdev] problem with __thread on linux/x86_64
...bler. The .type directive should probably specify type "tls_object" rather than just "object". But I think gas infers that this is a TLS symbol anyway, because it is mentioned in TLS-related relocations. See this thread and follow-ups: http://www.cygwin.com/ml/binutils/2002-11/msg00409.html Jay.
2010 Nov 09
2
[LLVMdev] problem with __thread on linux/x86_64
Hi, On Ubuntu Linux/x86_64, I get: $ cat t.c #include <stdio.h> __thread int i = 7; int main() { printf("%d\n", i); } $ clang -o t t.c $ ./t Segmentation fault (gdb) disas Dump of assembler code for function main: 0x0000000000400560 <+0>: push %rbp 0x0000000000400561 <+1>: mov %rsp,%rbp 0x0000000000400564 <+4>: sub $0x10,%rsp