zig/deps/lld/test/ELF/tls-static.s

23 lines
505 B
ArmAsm
Raw Normal View History

2018-08-05 05:47:16 +08:00
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/shared.s -o %tso
// RUN: ld.lld -static %t -o %tout
// RUN: ld.lld %t -o %tout
// RUN: ld.lld -shared %tso -o %tshared
2018-01-18 06:29:21 +08:00
// RUN: ld.lld -static %t %tshared -o %tout
.global _start
_start:
2018-01-18 06:29:21 +08:00
data16
leaq foobar@TLSGD(%rip), %rdi
data16
data16
rex64
callq __tls_get_addr@PLT
2018-01-18 06:29:21 +08:00
.section .tdata,"awT",@progbits
.global foobar
foobar:
.long 42