1 #source: start1.s
2 #source: tls-dso-tpoffgotcomm1.s
3 #as: --no-underscore --pic --em=criself -I$srcdir/$subdir
4 #ld: -m crislinux -shared
5 #objdump: -d -h -s -t -r -R -p
6 
7 # Make sure we can link a file with TPOFFGOT relocs against common
8 # symbols.
9 
10 .*:     file format elf32-cris
11 
12 Program Header:
13     LOAD off    0x0+ vaddr 0x0+ paddr 0x0+ align 2\*\*13
14          filesz 0x0+1c8 memsz 0x0+1c8 flags r-x
15     LOAD off .*
16          filesz .*
17  DYNAMIC off .*
18          filesz .*
19      TLS off    .* vaddr .* paddr .* align 2\*\*2
20          filesz 0x0+ memsz 0x0+8 flags r--
21 #...
22 Sections:
23 #...
24   7 .got          0+14  0+2240  0+2240  0+240  2\*\*2
25                   CONTENTS, ALLOC, LOAD, DATA
26 SYMBOL TABLE:
27 #...
28 0+ g       \.tbss	0+4 foo
29 #...
30 0+4 g       \.tbss	0+4 bar
31 
32 #...
33 Contents of section .got:
34  2240 c8210000 00000000 00000000 00000000  .*
35  2250 00000000                             .*
36 
37 Disassembly of section \.text:
38 
39 0+1b8 <_start>:
40  1b8:	41b2                	moveq 1,\$r11
41 	\.\.\.
42 
43 0+1bc <do_test>:
44  1bc:	2f0e 0c00 0000      	add\.d c <bar\+0x8>,\$r0
45  1c2:	1f1e 1000           	add\.w 0x10,\$r1
46 	\.\.\.
47