aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/gc-debuginfo-tls.s
blob: d1a250b9c94409de5f6e1f64b22d6898e9326d25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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