• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -arch=mips < %s -position-independent -filetype=obj \
2# RUN:   | llvm-readelf -symbols | FileCheck %s
3# RUN: llvm-mc -arch=mips < %s -filetype=obj | llvm-readelf -symbols \
4# RUN:   | FileCheck %s
5
6# Test that TLS relocations cause symbols to be marked as TLS symbols.
7
8  .set  noat
9  lui $3, %tlsgd(foo1)
10  lui $1, %dtprel_hi(foo2)
11  lui $1, %dtprel_lo(foo3)
12  lui $1, %tprel_hi(foo4)
13  lui $1, %tprel_lo(foo5)
14  lw $2, %gottprel(foo6)($28)
15
16  .hidden foo1
17  .hidden foo2
18  .hidden foo3
19  .hidden foo4
20  .hidden foo5
21  .hidden foo6
22
23# CHECK:     1: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo1
24# CHECK:     2: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo2
25# CHECK:     3: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo3
26# CHECK:     4: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo4
27# CHECK:     5: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo5
28# CHECK:     6: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo6
29