1 # RUN: llvm-mc -arch=mips < %s -position-independent -filetype=obj \
2 # RUN: | llvm-readelf -s | FileCheck %s
3 # RUN: llvm-mc -arch=mips < %s -filetype=obj | llvm-readelf -s | FileCheck %s
5 # Test that TLS relocations cause symbols to be marked as TLS symbols.
9 lui $
1, %dtprel_hi
(foo2
)
10 lui $
1, %dtprel_lo
(foo3
)
11 lui $
1, %tprel_hi
(foo4
)
12 lui $
1, %tprel_lo
(foo5
)
13 lw $
2, %gottprel
(foo6
)($
28)
22 # CHECK: 1: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo1
23 # CHECK: 2: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo2
24 # CHECK: 3: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo3
25 # CHECK: 4: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo4
26 # CHECK: 5: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo5
27 # CHECK: 6: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo6