Displaying 6 results from an estimated 6 matches for "stt_tls".
Did you mean:
set_tls
2010 Nov 11
0
[LLVMdev] problem with __thread on linux/x86_64
...be that symbol "i" in
the assembler source:
.type i, at object # @i
.section .tdata,"awT", at progbits
.globl i
.align 4
i:
.long 7 # 0x7
.size i, 4
... is given ELF symbol type STT_TLS by gcc's assembler, but
STT_OBJECT by clang's assembler.
I think this used to work, a few weeks ago. Has anything changed in
this are recently?
Thanks,
Jay.
2010 Nov 11
2
[LLVMdev] problem with __thread on linux/x86_64
...bler source:
>
> .type i, at object # @i
> .section .tdata,"awT", at progbits
> .globl i
> .align 4
> i:
> .long 7 # 0x7
> .size i, 4
>
> ... is given ELF symbol type STT_TLS by gcc's assembler, but
> STT_OBJECT by clang's assembler.
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
t...
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
2010 Feb 12
2
[LLVMdev] [PATCH] Fix off-by-one errors in the doxygen documentation
...ve.
// Various directives in alphabetical order.
- MCSA_ELF_TypeFunction, /// .type _foo, STT_FUNC # aka @function
- MCSA_ELF_TypeIndFunction, /// .type _foo, STT_GNU_IFUNC
- MCSA_ELF_TypeObject, /// .type _foo, STT_OBJECT # aka @object
- MCSA_ELF_TypeTLS, /// .type _foo, STT_TLS # aka @tls_object
- MCSA_ELF_TypeCommon, /// .type _foo, STT_COMMON # aka @common
- MCSA_ELF_TypeNoType, /// .type _foo, STT_NOTYPE # aka @notype
- MCSA_Global, /// .globl
- MCSA_Hidden, /// .hidden (ELF)
- MCSA_IndirectSymbol, /// .indirect_symbo...
2010 Nov 11
0
[LLVMdev] problem with __thread on linux/x86_64
...ype i, at object # @i
>> .section .tdata,"awT", at progbits
>> .globl i
>> .align 4
>> i:
>> .long 7 # 0x7
>> .size i, 4
>>
>> ... is given ELF symbol type STT_TLS by gcc's assembler, but
>> STT_OBJECT by clang's assembler.
>
> The .type directive should probably specify type "tls_object" rather
> than just "object".
The attached patch fixes this, and it makes my favourite (proprietary)
app work on Linux when compil...
2005 Jan 06
0
[PATCH] ELF headers
...ecified */
+#define STT_OBJECT 1 /* symbol is a data object */
+#define STT_FUNC 2 /* symbol is a code object */
+#define STT_SECTION 3 /* symbol associated with a section */
+#define STT_FILE 4 /* symbol's name is file name */
+#define STT_COMMON 5 /* symbol is a common data object */
+#define STT_TLS 6 /* symbol is thread-local data object*/
+#define STT_NUM 7 /* number of defined types. */
+#define STT_LOOS 10 /* start of OS-specific */
+#define STT_HIOS 12 /* end of OS-specific */
+#define STT_LOPROC 13 /* start of processor-specific */
+#define STT_HIPROC 15 /* end of processor-specific *...