1 #name: MIPS ELF got reloc n32 2 #as: -march=from-abi -EB -n32 -KPIC 3 #objcopy_objects: -R .MIPS.abiflags -K __start 4 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n32.s RUN_OBJCOPY 5 #ld: 6 #objdump: -D --show-raw-insn 7 8 .*: +file format elf32-n.*mips.* 9 10 Disassembly of section \.reginfo: 11 12 10000098 <\.reginfo>: 13 10000098: 92020022 .* 14 \.\.\. 15 100000ac: 100185a0 .* 16 17 Disassembly of section \.text: 18 19 100000b0 <fn>: 20 100000b0: 8f858018 lw a1,-32744\(gp\) 21 100000b4: 8f858018 lw a1,-32744\(gp\) 22 100000b8: 24a5000c addiu a1,a1,12 23 100000bc: 8f858018 lw a1,-32744\(gp\) 24 100000c0: 3c010001 lui at,0x1 25 100000c4: 3421e240 ori at,at,0xe240 26 100000c8: 00a12821 addu a1,a1,at 27 100000cc: 8f858018 lw a1,-32744\(gp\) 28 100000d0: 00b12821 addu a1,a1,s1 29 100000d4: 8f858018 lw a1,-32744\(gp\) 30 100000d8: 24a5000c addiu a1,a1,12 31 100000dc: 00b12821 addu a1,a1,s1 32 100000e0: 8f858018 lw a1,-32744\(gp\) 33 100000e4: 3c010001 lui at,0x1 34 100000e8: 3421e240 ori at,at,0xe240 35 100000ec: 00a12821 addu a1,a1,at 36 100000f0: 00b12821 addu a1,a1,s1 37 100000f4: 8f85801c lw a1,-32740\(gp\) 38 100000f8: 8ca504fc lw a1,1276\(a1\) 39 100000fc: 8f85801c lw a1,-32740\(gp\) 40 10000100: 8ca50508 lw a1,1288\(a1\) 41 10000104: 8f85801c lw a1,-32740\(gp\) 42 10000108: 00b12821 addu a1,a1,s1 43 1000010c: 8ca504fc lw a1,1276\(a1\) 44 10000110: 8f85801c lw a1,-32740\(gp\) 45 10000114: 00b12821 addu a1,a1,s1 46 10000118: 8ca50508 lw a1,1288\(a1\) 47 1000011c: 8f81801c lw at,-32740\(gp\) 48 10000120: 00250821 addu at,at,a1 49 10000124: 8c25051e lw a1,1310\(at\) 50 10000128: 8f81801c lw at,-32740\(gp\) 51 1000012c: 00250821 addu at,at,a1 52 10000130: ac250534 sw a1,1332\(at\) 53 10000134: 8f818018 lw at,-32744\(gp\) 54 10000138: 88250000 lwl a1,0\(at\) 55 1000013c: 98250003 lwr a1,3\(at\) 56 10000140: 8f818018 lw at,-32744\(gp\) 57 10000144: 2421000c addiu at,at,12 58 10000148: 88250000 lwl a1,0\(at\) 59 1000014c: 98250003 lwr a1,3\(at\) 60 10000150: 8f818018 lw at,-32744\(gp\) 61 10000154: 00310821 addu at,at,s1 62 10000158: 88250000 lwl a1,0\(at\) 63 1000015c: 98250003 lwr a1,3\(at\) 64 10000160: 8f818018 lw at,-32744\(gp\) 65 10000164: 2421000c addiu at,at,12 66 10000168: 00310821 addu at,at,s1 67 1000016c: 88250000 lwl a1,0\(at\) 68 10000170: 98250003 lwr a1,3\(at\) 69 10000174: 8f818018 lw at,-32744\(gp\) 70 10000178: 24210022 addiu at,at,34 71 1000017c: 00250821 addu at,at,a1 72 10000180: 88250000 lwl a1,0\(at\) 73 10000184: 98250003 lwr a1,3\(at\) 74 10000188: 8f818018 lw at,-32744\(gp\) 75 1000018c: 24210038 addiu at,at,56 76 10000190: 00250821 addu at,at,a1 77 10000194: a8250000 swl a1,0\(at\) 78 10000198: b8250003 swr a1,3\(at\) 79 1000019c: 8f858018 lw a1,-32744\(gp\) 80 100001a0: 8f858020 lw a1,-32736\(gp\) 81 100001a4: 8f858024 lw a1,-32732\(gp\) 82 100001a8: 8f858018 lw a1,-32744\(gp\) 83 100001ac: 00b12821 addu a1,a1,s1 84 100001b0: 8f858020 lw a1,-32736\(gp\) 85 100001b4: 00b12821 addu a1,a1,s1 86 100001b8: 8f858024 lw a1,-32732\(gp\) 87 100001bc: 00b12821 addu a1,a1,s1 88 100001c0: 8f85801c lw a1,-32740\(gp\) 89 100001c4: 8ca504fc lw a1,1276\(a1\) 90 100001c8: 8f85801c lw a1,-32740\(gp\) 91 100001cc: 8ca50508 lw a1,1288\(a1\) 92 100001d0: 8f85801c lw a1,-32740\(gp\) 93 100001d4: 00b12821 addu a1,a1,s1 94 100001d8: 8ca504fc lw a1,1276\(a1\) 95 100001dc: 8f85801c lw a1,-32740\(gp\) 96 100001e0: 00b12821 addu a1,a1,s1 97 100001e4: 8ca50508 lw a1,1288\(a1\) 98 100001e8: 8f81801c lw at,-32740\(gp\) 99 100001ec: 00250821 addu at,at,a1 100 100001f0: 8c25051e lw a1,1310\(at\) 101 100001f4: 8f81801c lw at,-32740\(gp\) 102 100001f8: 00250821 addu at,at,a1 103 100001fc: ac250534 sw a1,1332\(at\) 104 10000200: 8f818018 lw at,-32744\(gp\) 105 10000204: 88250000 lwl a1,0\(at\) 106 10000208: 98250003 lwr a1,3\(at\) 107 1000020c: 8f818020 lw at,-32736\(gp\) 108 10000210: 88250000 lwl a1,0\(at\) 109 10000214: 98250003 lwr a1,3\(at\) 110 10000218: 8f818018 lw at,-32744\(gp\) 111 1000021c: 00310821 addu at,at,s1 112 10000220: 88250000 lwl a1,0\(at\) 113 10000224: 98250003 lwr a1,3\(at\) 114 10000228: 8f818020 lw at,-32736\(gp\) 115 1000022c: 00310821 addu at,at,s1 116 10000230: 88250000 lwl a1,0\(at\) 117 10000234: 98250003 lwr a1,3\(at\) 118 10000238: 8f818028 lw at,-32728\(gp\) 119 1000023c: 00250821 addu at,at,a1 120 10000240: 88250000 lwl a1,0\(at\) 121 10000244: 98250003 lwr a1,3\(at\) 122 10000248: 8f81802c lw at,-32724\(gp\) 123 1000024c: 00250821 addu at,at,a1 124 10000250: a8250000 swl a1,0\(at\) 125 10000254: b8250003 swr a1,3\(at\) 126 10000258: 8f858030 lw a1,-32720\(gp\) 127 1000025c: 8f858030 lw a1,-32720\(gp\) 128 10000260: 8f998030 lw t9,-32720\(gp\) 129 10000264: 8f998030 lw t9,-32720\(gp\) 130 10000268: 8f998030 lw t9,-32720\(gp\) 131 1000026c: 0411ff90 bal 100000b0 <fn> 132 10000270: 00000000 nop 133 10000274: 8f998030 lw t9,-32720\(gp\) 134 10000278: 0411ff8d bal 100000b0 <fn> 135 1000027c: 00000000 nop 136 10000280: 8f858034 lw a1,-32716\(gp\) 137 10000284: 8f858034 lw a1,-32716\(gp\) 138 10000288: 24a5000c addiu a1,a1,12 139 1000028c: 8f858034 lw a1,-32716\(gp\) 140 10000290: 3c010001 lui at,0x1 141 10000294: 3421e240 ori at,at,0xe240 142 10000298: 00a12821 addu a1,a1,at 143 1000029c: 8f858034 lw a1,-32716\(gp\) 144 100002a0: 00b12821 addu a1,a1,s1 145 100002a4: 8f858034 lw a1,-32716\(gp\) 146 100002a8: 24a5000c addiu a1,a1,12 147 100002ac: 00b12821 addu a1,a1,s1 148 100002b0: 8f858034 lw a1,-32716\(gp\) 149 100002b4: 3c010001 lui at,0x1 150 100002b8: 3421e240 ori at,at,0xe240 151 100002bc: 00a12821 addu a1,a1,at 152 100002c0: 00b12821 addu a1,a1,s1 153 100002c4: 8f85801c lw a1,-32740\(gp\) 154 100002c8: 8ca50574 lw a1,1396\(a1\) 155 100002cc: 8f85801c lw a1,-32740\(gp\) 156 100002d0: 8ca50580 lw a1,1408\(a1\) 157 100002d4: 8f85801c lw a1,-32740\(gp\) 158 100002d8: 00b12821 addu a1,a1,s1 159 100002dc: 8ca50574 lw a1,1396\(a1\) 160 100002e0: 8f85801c lw a1,-32740\(gp\) 161 100002e4: 00b12821 addu a1,a1,s1 162 100002e8: 8ca50580 lw a1,1408\(a1\) 163 100002ec: 8f81801c lw at,-32740\(gp\) 164 100002f0: 00250821 addu at,at,a1 165 100002f4: 8c250596 lw a1,1430\(at\) 166 100002f8: 8f81801c lw at,-32740\(gp\) 167 100002fc: 00250821 addu at,at,a1 168 10000300: ac2505ac sw a1,1452\(at\) 169 10000304: 8f818034 lw at,-32716\(gp\) 170 10000308: 88250000 lwl a1,0\(at\) 171 1000030c: 98250003 lwr a1,3\(at\) 172 10000310: 8f818034 lw at,-32716\(gp\) 173 10000314: 2421000c addiu at,at,12 174 10000318: 88250000 lwl a1,0\(at\) 175 1000031c: 98250003 lwr a1,3\(at\) 176 10000320: 8f818034 lw at,-32716\(gp\) 177 10000324: 00310821 addu at,at,s1 178 10000328: 88250000 lwl a1,0\(at\) 179 1000032c: 98250003 lwr a1,3\(at\) 180 10000330: 8f818034 lw at,-32716\(gp\) 181 10000334: 2421000c addiu at,at,12 182 10000338: 00310821 addu at,at,s1 183 1000033c: 88250000 lwl a1,0\(at\) 184 10000340: 98250003 lwr a1,3\(at\) 185 10000344: 8f818034 lw at,-32716\(gp\) 186 10000348: 24210022 addiu at,at,34 187 1000034c: 00250821 addu at,at,a1 188 10000350: 88250000 lwl a1,0\(at\) 189 10000354: 98250003 lwr a1,3\(at\) 190 10000358: 8f818034 lw at,-32716\(gp\) 191 1000035c: 24210038 addiu at,at,56 192 10000360: 00250821 addu at,at,a1 193 10000364: a8250000 swl a1,0\(at\) 194 10000368: b8250003 swr a1,3\(at\) 195 1000036c: 8f858034 lw a1,-32716\(gp\) 196 10000370: 8f858038 lw a1,-32712\(gp\) 197 10000374: 8f85803c lw a1,-32708\(gp\) 198 10000378: 8f858034 lw a1,-32716\(gp\) 199 1000037c: 00b12821 addu a1,a1,s1 200 10000380: 8f858038 lw a1,-32712\(gp\) 201 10000384: 00b12821 addu a1,a1,s1 202 10000388: 8f85803c lw a1,-32708\(gp\) 203 1000038c: 00b12821 addu a1,a1,s1 204 10000390: 8f85801c lw a1,-32740\(gp\) 205 10000394: 8ca50574 lw a1,1396\(a1\) 206 10000398: 8f85801c lw a1,-32740\(gp\) 207 1000039c: 8ca50580 lw a1,1408\(a1\) 208 100003a0: 8f85801c lw a1,-32740\(gp\) 209 100003a4: 00b12821 addu a1,a1,s1 210 100003a8: 8ca50574 lw a1,1396\(a1\) 211 100003ac: 8f85801c lw a1,-32740\(gp\) 212 100003b0: 00b12821 addu a1,a1,s1 213 100003b4: 8ca50580 lw a1,1408\(a1\) 214 100003b8: 8f81801c lw at,-32740\(gp\) 215 100003bc: 00250821 addu at,at,a1 216 100003c0: 8c250596 lw a1,1430\(at\) 217 100003c4: 8f81801c lw at,-32740\(gp\) 218 100003c8: 00250821 addu at,at,a1 219 100003cc: ac2505ac sw a1,1452\(at\) 220 100003d0: 8f818034 lw at,-32716\(gp\) 221 100003d4: 88250000 lwl a1,0\(at\) 222 100003d8: 98250003 lwr a1,3\(at\) 223 100003dc: 8f818038 lw at,-32712\(gp\) 224 100003e0: 88250000 lwl a1,0\(at\) 225 100003e4: 98250003 lwr a1,3\(at\) 226 100003e8: 8f818034 lw at,-32716\(gp\) 227 100003ec: 00310821 addu at,at,s1 228 100003f0: 88250000 lwl a1,0\(at\) 229 100003f4: 98250003 lwr a1,3\(at\) 230 100003f8: 8f818038 lw at,-32712\(gp\) 231 100003fc: 00310821 addu at,at,s1 232 10000400: 88250000 lwl a1,0\(at\) 233 10000404: 98250003 lwr a1,3\(at\) 234 10000408: 8f818040 lw at,-32704\(gp\) 235 1000040c: 00250821 addu at,at,a1 236 10000410: 88250000 lwl a1,0\(at\) 237 10000414: 98250003 lwr a1,3\(at\) 238 10000418: 8f818044 lw at,-32700\(gp\) 239 1000041c: 00250821 addu at,at,a1 240 10000420: a8250000 swl a1,0\(at\) 241 10000424: b8250003 swr a1,3\(at\) 242 10000428: 8f858048 lw a1,-32696\(gp\) 243 1000042c: 8f858048 lw a1,-32696\(gp\) 244 10000430: 8f998048 lw t9,-32696\(gp\) 245 10000434: 8f998048 lw t9,-32696\(gp\) 246 10000438: 8f998048 lw t9,-32696\(gp\) 247 1000043c: 0411001d bal 100004b4 <fn2> 248 10000440: 00000000 nop 249 10000444: 8f998048 lw t9,-32696\(gp\) 250 10000448: 0411001a bal 100004b4 <fn2> 251 1000044c: 00000000 nop 252 10000450: 1000ff17 b 100000b0 <fn> 253 10000454: 8f858018 lw a1,-32744\(gp\) 254 10000458: 8f85801c lw a1,-32740\(gp\) 255 1000045c: 10000015 b 100004b4 <fn2> 256 10000460: 8ca50574 lw a1,1396\(a1\) 257 10000464: 1000ff12 b 100000b0 <fn> 258 10000468: 8f858018 lw a1,-32744\(gp\) 259 1000046c: 8f858038 lw a1,-32712\(gp\) 260 10000470: 10000010 b 100004b4 <fn2> 261 10000474: 00000000 nop 262 10000478: 8f858024 lw a1,-32732\(gp\) 263 1000047c: 1000ff0c b 100000b0 <fn> 264 10000480: 00000000 nop 265 10000484: 8f85801c lw a1,-32740\(gp\) 266 10000488: 1000000a b 100004b4 <fn2> 267 1000048c: 8ca50574 lw a1,1396\(a1\) 268 10000490: 8f85801c lw a1,-32740\(gp\) 269 10000494: 1000ff06 b 100000b0 <fn> 270 10000498: 8ca50508 lw a1,1288\(a1\) 271 1000049c: 8f81801c lw at,-32740\(gp\) 272 100004a0: 00250821 addu at,at,a1 273 100004a4: 10000003 b 100004b4 <fn2> 274 100004a8: 8c250596 lw a1,1430\(at\) 275 \.\.\. 276 277 100004b4 <fn2>: 278 \.\.\. 279 Disassembly of section \.data: 280 281 100104c0 <_fdata>: 282 \.\.\. 283 284 100104fc <dg1>: 285 \.\.\. 286 287 10010538 <sp2>: 288 \.\.\. 289 290 10010574 <dg2>: 291 \.\.\. 292 Disassembly of section \.got: 293 294 100105b0 <_GLOBAL_OFFSET_TABLE_>: 295 100105b0: 00000000 .* 296 100105b4: 80000000 .* 297 100105b8: 100104fc .* 298 100105bc: 10010000 .* 299 100105c0: 10010508 .* 300 100105c4: 1002e73c .* 301 100105c8: 1001051e .* 302 100105cc: 10010534 .* 303 100105d0: 100000b0 .* 304 100105d4: 10010574 .* 305 100105d8: 10010580 .* 306 100105dc: 1002e7b4 .* 307 100105e0: 10010596 .* 308 100105e4: 100105ac .* 309 100105e8: 100004b4 .* 310 100105ec: 00000000 .* 311 \.\.\. 312 #pass 313