1 #as: --abi=64 2 #objdump: -xsr 3 #source: datal-3.s 4 #name: DataLabel local def/use, SHmedia 64-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+c4 0+ 0+ 0+40 2\*\*0 19 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 20 1 \.data 0+ 0+ 0+ 0+104 2\*\*0 21 CONTENTS, ALLOC, LOAD, DATA 22 2 \.bss 0+ 0+ 0+ 0+104 2\*\*0 23 ALLOC 24 3 \.rodata 0+10 0+ 0+ 0+104 2\*\*2 25 CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA 26 SYMBOL TABLE: 27 0+ l d \.text 0+ (|\.text) 28 0+ l d \.data 0+ (|\.data) 29 0+ l d \.bss 0+ (|\.bss) 30 0+ l \.text 0+ 0x04 start 31 0+58 l \.text 0+ 0x04 foo 32 0+68 l \.text 0+ 0x04 foo2 33 0+78 l \.text 0+ 0x04 foo3 34 0+ l d \.rodata 0+ (|\.rodata) 35 0+88 l \.text 0+ 0x04 foo4 36 0+4 l \.rodata 0+ myrodata1 37 0+98 l \.text 0+ 0x04 foo5 38 0+8 l \.rodata 0+ myrodata2 39 0+c g \.rodata 0+ myrodata3 40 0+b8 g \.text 0+ 0x04 foo7 41 0+b8 \*UND\* 0+ foo7 42 0+bc g \.text 0+ 0x04 foo8 43 0+bc \*UND\* 0+ foo8 44 0+c0 g \.text 0+ 0x04 foo9 45 0+c0 \*UND\* 0+ foo9 46 0+a8 g \.text 0+ 0x04 foo6 47 0+a8 \*UND\* 0+ foo6 48 49 50 RELOCATION RECORDS FOR \[\.text\]: 51 OFFSET TYPE VALUE 52 0+20 R_SH_IMM_MEDLOW16 \.text\+0x0+a6 53 0+44 R_SH_IMM_MEDLOW16 foo9\+0x0+40 54 0+ R_SH_IMM_HI16 \.text\+0x0+58 55 0+4 R_SH_IMM_MEDHI16 \.text\+0x0+58 56 0+8 R_SH_IMM_MEDLOW16 \.text\+0x0+58 57 0+c R_SH_IMM_LOW16 \.text\+0x0+58 58 0+10 R_SH_IMM_HI16 \.text\+0x0+92 59 0+14 R_SH_IMM_MEDHI16 \.text\+0x0+92 60 0+18 R_SH_IMM_MEDLOW16 \.text\+0x0+92 61 0+1c R_SH_IMM_LOW16 \.text\+0x0+92 62 0+24 R_SH_IMM_HI16 foo7\+0x0+2a 63 0+28 R_SH_IMM_MEDHI16 foo7\+0x0+2a 64 0+2c R_SH_IMM_MEDLOW16 foo7\+0x0+2a 65 0+30 R_SH_IMM_LOW16 foo7\+0x0+2a 66 0+34 R_SH_IMM_HI16 foo8 67 0+38 R_SH_IMM_MEDHI16 foo8 68 0+3c R_SH_IMM_MEDLOW16 foo8 69 0+40 R_SH_IMM_LOW16 foo8 70 0+48 R_SH_IMM_HI16 \.rodata\+0x0+4 71 0+4c R_SH_IMM_MEDHI16 \.rodata\+0x0+4 72 0+50 R_SH_IMM_MEDLOW16 \.rodata\+0x0+4 73 0+54 R_SH_IMM_LOW16 \.rodata\+0x0+4 74 0+58 R_SH_IMM_HI16 \.rodata\+0x0+26 75 0+5c R_SH_IMM_MEDHI16 \.rodata\+0x0+26 76 0+60 R_SH_IMM_MEDLOW16 \.rodata\+0x0+26 77 0+64 R_SH_IMM_LOW16 \.rodata\+0x0+26 78 0+68 R_SH_IMM_HI16 \.text\+0x0+58 79 0+6c R_SH_IMM_MEDHI16 \.text\+0x0+58 80 0+70 R_SH_IMM_MEDLOW16 \.text\+0x0+58 81 0+74 R_SH_IMM_LOW16 \.text\+0x0+58 82 0+78 R_SH_IMM_HI16 \.text\+0x0+78 83 0+7c R_SH_IMM_MEDHI16 \.text\+0x0+78 84 0+80 R_SH_IMM_MEDLOW16 \.text\+0x0+78 85 0+84 R_SH_IMM_LOW16 \.text\+0x0+78 86 0+88 R_SH_IMM_HI16 \.text\+0x0+b0 87 0+8c R_SH_IMM_MEDHI16 \.text\+0x0+b0 88 0+90 R_SH_IMM_MEDLOW16 \.text\+0x0+b0 89 0+94 R_SH_IMM_LOW16 \.text\+0x0+b0 90 0+98 R_SH_IMM_HI16 myrodata3 91 0+9c R_SH_IMM_MEDHI16 myrodata3 92 0+a0 R_SH_IMM_MEDLOW16 myrodata3 93 0+a4 R_SH_IMM_LOW16 myrodata3 94 0+a8 R_SH_IMM_HI16 foo6\+0x0+2a 95 0+ac R_SH_IMM_MEDHI16 foo6\+0x0+2a 96 0+b0 R_SH_IMM_MEDLOW16 foo6\+0x0+2a 97 0+b4 R_SH_IMM_LOW16 foo6\+0x0+2a 98 99 100 RELOCATION RECORDS FOR \[\.rodata\]: 101 OFFSET TYPE VALUE 102 0+ R_SH_DIR32 \.text 103 0+4 R_SH_DIR32 \.text 104 0+8 R_SH_DIR32 \.rodata 105 0+c R_SH_DIR32 \.rodata 106 107 108 Contents of section \.text: 109 0000 cc000030 c8000030 c8000030 c8000030 .* 110 0010 cc000030 c8000030 c8000030 c8000030 .* 111 0020 cc000030 cc0001e0 c80001e0 c80001e0 .* 112 0030 c80001e0 cc0001e0 c80001e0 c80001e0 .* 113 0040 c80001e0 cc000030 cc000380 c8000380 .* 114 0050 c8000380 c8000380 cc000150 c8000150 .* 115 0060 c8000150 c8000150 cc0000a0 c80000a0 .* 116 0070 c80000a0 c80000a0 cc000210 c8000210 .* 117 0080 c8000210 c8000210 cc000080 c8000080 .* 118 0090 c8000080 c8000080 cc0002c0 c80002c0 .* 119 00a0 c80002c0 c80002c0 cc0001e0 c80001e0 .* 120 00b0 c80001e0 c80001e0 6ff0fff0 6ff0fff0 .* 121 00c0 6ff0fff0 .* 122 Contents of section \.rodata: 123 0000 00000088 000000d0 00000008 00000020 .* 124