1#name: TLS Global Dynamic link test (C-SKY V1)
2#source: tls-gd-v1.s
3#as: -mcpu=ck610
4#ld: -shared --hash-style=sysv
5#readelf: -d -r
6
7Dynamic section at offset 0x[0-9a-f]+ contains 13 entries:
8  Tag        Type                         Name/Value
9 0x00000004 \(HASH\)                       .*
10 0x00000005 \(STRTAB\)                     .*
11 0x00000006 \(SYMTAB\)                     .*
12 0x0000000a \(STRSZ\)                      .* \(bytes\)
13 0x0000000b \(SYMENT\)                     .* \(bytes\)
14 0x00000003 \(PLTGOT\)                     0x[0-9a-f]+
15 0x00000002 \(PLTRELSZ\)                   12 \(bytes\)
16 0x00000014 \(PLTREL\)                     RELA
17 0x00000017 \(JMPREL\)                     0x[0-9a-f]+
18 0x00000007 \(RELA\)                       0x[0-9a-f]+
19 0x00000008 \(RELASZ\)                     24 \(bytes\)
20 0x00000009 \(RELAENT\)                    12 \(bytes\)
21 0x00000000 \(NULL\)                       0x0
22
23Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 2 entries:
24 Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
25[0-9a-f]+  [0-9a-f]+ R_CKCORE_TLS_DTPM 00000000   var \+ 0
26[0-9a-f]+  [0-9a-f]+ R_CKCORE_TLS_DTPO 00000000   var \+ 0
27
28Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry:
29 Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
30[0-9a-f]+  0000040c R_CKCORE_JUMP_SLO 00000000   __tls_get_addr \+ .*
31