File: tls-symbols.s

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (27 lines) | stat: -rw-r--r-- 944 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# RUN: llvm-mc -arch=mips < %s -position-independent -filetype=obj \
# RUN:   | llvm-readelf -s - | FileCheck %s
# RUN: llvm-mc -arch=mips < %s -filetype=obj | llvm-readelf -s - | FileCheck %s

# Test that TLS relocations cause symbols to be marked as TLS symbols.

  .set  noat
  lui $3, %tlsgd(foo1)
  lui $1, %dtprel_hi(foo2)
  lui $1, %dtprel_lo(foo3)
  lui $1, %tprel_hi(foo4)
  lui $1, %tprel_lo(foo5)
  lw $2, %gottprel(foo6)($28)

  .hidden foo1
  .hidden foo2
  .hidden foo3
  .hidden foo4
  .hidden foo5
  .hidden foo6

# CHECK:     1: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo1
# CHECK:     2: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo2
# CHECK:     3: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo3
# CHECK:     4: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo4
# CHECK:     5: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo5
# CHECK:     6: {{.+}}       {{.+}} TLS     GLOBAL HIDDEN   UND foo6