• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: arm
2## Test we resolve relocations referencing TLS symbols in .debug_* sections to
3## a tombstone value if the referenced TLS symbol is discarded.
4
5# RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
6# RUN: ld.lld --gc-sections %t.o -o %t
7# RUN: llvm-objdump -s %t | FileCheck %s
8
9# CHECK:      Contents of section .debug_info:
10# CHECK-NEXT:  0000 00000000
11
12.globl _start
13_start:
14  bx lr
15
16.section .tbss,"awT",%nobits
17.globl tls
18  .long 0
19
20.section .debug_info
21## R_ARM_TLS_LDO32
22  .long tls(tlsldo)
23