http://llvm.org/bugs/show_bug.cgi?id=16814
Bug ID: 16814
Summary: support TLSDESC and TLSCALL / GNU2 tls dialect.
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: MC
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
MC doesn't support the TLS relocations in the GNU2 TLS dialect.
$ cat t.s
__cxa_get_globals:
leaq _ZL3ccc@TLSDESC(%rip), %rax
call *_ZL3ccc@TLSCALL(%rax)
addq %fs:0, %rax
ret
$ gcc -c t.s -o t.o
$ objdump -dr t.o
t.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <__cxa_get_globals>:
0: 48 8d 05 00 00 00 00 lea 0x0(%rip),%rax # 7
<__cxa_get_globals+0x7>
3: R_X86_64_GOTPC32_TLSDESC _ZL3ccc-0x4
7: ff 10 callq *(%rax)
7: R_X86_64_TLSDESC_CALL _ZL3ccc
9: 64 48 03 04 25 00 00 add %fs:0x0,%rax
10: 00 00
12: c3 retq
$ llvm/Debug+Asserts/bin/clang t.s -c -o t.o
t.s:2:32: error: invalid variant 'TLSDESC'
leaq _ZL3ccc@TLSDESC(%rip), %rax
^
t.s:3:33: error: invalid variant 'TLSCALL'
call *_ZL3ccc@TLSCALL(%rax)
^
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs