Use bfd_map_over_sections to walk section chain.
[binutils-gdb.git] / gas / testsuite / gas / sh / sh64 / datal32-3.d
1 #as: --abi=32
2 #objdump: -xsr
3 #source: datal-3.s
4 #name: DataLabel local def/use, SHmedia 32-bit ABI
5
6 # We should have the st_type field of each symbol displayed too, so we can
7 # check that STT_DATALABEL is set, but objdump doesn't do that at present,
8 # and readelf isn't supported as a run_dump_test tool.
9
10 .*: file format .*-sh64.*
11 .*
12 architecture: sh5, flags 0x0+11:
13 HAS_RELOC, HAS_SYMS
14 start address 0x0+
15
16 Sections:
17 Idx Name Size VMA LMA File off Algn
18 0 \.text 0+6c 0+ 0+ 0+34 2\*\*0
19 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
20 1 \.data 0+ 0+ 0+ 0+a0 2\*\*0
21 CONTENTS, ALLOC, LOAD, DATA
22 2 \.bss 0+ 0+ 0+ 0+a0 2\*\*0
23 ALLOC
24 3 \.rodata 0+10 0+ 0+ 0+a0 2\*\*0
25 CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
26 SYMBOL TABLE:
27 0+ l d \.text 0+
28 0+ l d \.data 0+
29 0+ l d \.bss 0+
30 0+ l \.text 0+ 0x04 start
31 0+30 l \.text 0+ 0x04 foo
32 0+38 l \.text 0+ 0x04 foo2
33 0+40 l \.text 0+ 0x04 foo3
34 0+ l d \.rodata 0+
35 0+48 l \.text 0+ 0x04 foo4
36 0+4 l \.rodata 0+ myrodata1
37 0+50 l \.text 0+ 0x04 foo5
38 0+8 l \.rodata 0+ myrodata2
39 0+c g \.rodata 0+ myrodata3
40 0+60 g \.text 0+ 0x04 foo7
41 0+60 \*UND\* 0+ foo7
42 0+64 g \.text 0+ 0x04 foo8
43 0+64 \*UND\* 0+ foo8
44 0+68 g \.text 0+ 0x04 foo9
45 0+68 \*UND\* 0+ foo9
46 0+58 g \.text 0+ 0x04 foo6
47 0+58 \*UND\* 0+ foo6
48
49 RELOCATION RECORDS FOR \[\.text\]:
50 OFFSET *TYPE *VALUE
51 0+10 R_SH_IMM_MEDLOW16 \.text\+0x0+6e
52 0+24 R_SH_IMM_MEDLOW16 foo9\+0x0+40
53 0+00 R_SH_IMM_MEDLOW16 \.text\+0x0+30
54 0+04 R_SH_IMM_LOW16 \.text\+0x0+30
55 0+08 R_SH_IMM_MEDLOW16 \.text\+0x0+62
56 0+0c R_SH_IMM_LOW16 \.text\+0x0+62
57 0+14 R_SH_IMM_MEDLOW16 foo7\+0x0+2a
58 0+18 R_SH_IMM_LOW16 foo7\+0x0+2a
59 0+1c R_SH_IMM_MEDLOW16 foo8
60 0+20 R_SH_IMM_LOW16 foo8
61 0+28 R_SH_IMM_MEDLOW16 \.rodata\+0x0+4
62 0+2c R_SH_IMM_LOW16 \.rodata\+0x0+4
63 0+30 R_SH_IMM_MEDLOW16 \.rodata\+0x0+26
64 0+34 R_SH_IMM_LOW16 \.rodata\+0x0+26
65 0+38 R_SH_IMM_MEDLOW16 \.text\+0x0+30
66 0+3c R_SH_IMM_LOW16 \.text\+0x0+30
67 0+40 R_SH_IMM_MEDLOW16 \.text\+0x0+40
68 0+44 R_SH_IMM_LOW16 \.text\+0x0+40
69 0+48 R_SH_IMM_MEDLOW16 \.text\+0x0+70
70 0+4c R_SH_IMM_LOW16 \.text\+0x0+70
71 0+50 R_SH_IMM_MEDLOW16 myrodata3
72 0+54 R_SH_IMM_LOW16 myrodata3
73 0+58 R_SH_IMM_MEDLOW16 foo6\+0x0+2a
74 0+5c R_SH_IMM_LOW16 foo6\+0x0+2a
75
76
77 RELOCATION RECORDS FOR \[\.rodata\]:
78 OFFSET *TYPE *VALUE
79 0+ R_SH_DIR32 \.text
80 0+4 R_SH_DIR32 \.text
81 0+8 R_SH_DIR32 \.rodata
82 0+c R_SH_DIR32 \.rodata
83
84
85 Contents of section \.text:
86 0000 cc000030 c8000030 cc000030 c8000030 .*
87 0010 cc000030 cc0001e0 c80001e0 cc0001e0 .*
88 0020 c80001e0 cc000030 cc000380 c8000380 .*
89 0030 cc000150 c8000150 cc0000a0 c80000a0 .*
90 0040 cc000210 c8000210 cc000080 c8000080 .*
91 0050 cc0002c0 c80002c0 cc0001e0 c80001e0 .*
92 0060 6ff0fff0 6ff0fff0 6ff0fff0 .*
93 Contents of section \.rodata:
94 0000 00000048 00000088 00000008 00000020 .*