zig/deps/lld/test/ELF/gc-debuginfo-tls.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

24 lines
612 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o --gc-sections -shared -o %t1
# RUN: ld.lld %t.o -shared -o %t2
# RUN: llvm-readobj -symbols %t1 | FileCheck %s --check-prefix=GC
# RUN: llvm-readobj -symbols %t2 | FileCheck %s --check-prefix=NOGC
# NOGC: Symbol {
# NOGC: Name: patatino
# NOGC-NEXT: Value: 0x0
# NOGC-NEXT: Size: 0
# NOGC-NEXT: Binding: Local
# NOGC-NEXT: Type: TLS
# NOGC-NEXT: Other: 0
# NOGC-NEXT: Section: .tbss
# NOGC-NEXT: }
# GC-NOT: tbss
.section .tbss,"awT",@nobits
patatino:
.long 0
.section .noalloc,""
.quad patatino