1 #name: MIPS ELF got reloc n64 2 #as: -march=from-abi -EB -64 -KPIC 3 #objcopy_objects: -R .MIPS.abiflags 4 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n64.s RUN_OBJCOPY 5 #ld: 6 #objdump: -D --show-raw-insn 7 8 .*: +file format elf64-.*mips.* 9 10 Disassembly of section \.MIPS\.options: 11 12 00000001200000b0 <\.MIPS\.options>: 13 1200000b0: 01280000 .* 14 1200000b4: 00000000 .* 15 1200000b8: 92020022 .* 16 \.\.\. 17 1200000d0: 00000001 .* 18 1200000d4: 200185d0 .* 19 Disassembly of section \.text: 20 21 00000001200000e0 <fn>: 22 1200000e0: df858020 ld a1,-32736\(gp\) 23 1200000e4: df858020 ld a1,-32736\(gp\) 24 1200000e8: 64a5000c daddiu a1,a1,12 25 1200000ec: df858020 ld a1,-32736\(gp\) 26 1200000f0: 3c010001 lui at,0x1 27 1200000f4: 3421e240 ori at,at,0xe240 28 1200000f8: 00a1282d daddu a1,a1,at 29 1200000fc: df858020 ld a1,-32736\(gp\) 30 120000100: 00b1282d daddu a1,a1,s1 31 120000104: df858020 ld a1,-32736\(gp\) 32 120000108: 64a5000c daddiu a1,a1,12 33 12000010c: 00b1282d daddu a1,a1,s1 34 120000110: df858020 ld a1,-32736\(gp\) 35 120000114: 3c010001 lui at,0x1 36 120000118: 3421e240 ori at,at,0xe240 37 12000011c: 00a1282d daddu a1,a1,at 38 120000120: 00b1282d daddu a1,a1,s1 39 120000124: df858028 ld a1,-32728\(gp\) 40 120000128: dca5052c ld a1,1324\(a1\) 41 12000012c: df858028 ld a1,-32728\(gp\) 42 120000130: dca50538 ld a1,1336\(a1\) 43 120000134: df858028 ld a1,-32728\(gp\) 44 120000138: 00b1282d daddu a1,a1,s1 45 12000013c: dca5052c ld a1,1324\(a1\) 46 120000140: df858028 ld a1,-32728\(gp\) 47 120000144: 00b1282d daddu a1,a1,s1 48 120000148: dca50538 ld a1,1336\(a1\) 49 12000014c: df818028 ld at,-32728\(gp\) 50 120000150: 0025082d daddu at,at,a1 51 120000154: dc25054e ld a1,1358\(at\) 52 120000158: df818028 ld at,-32728\(gp\) 53 12000015c: 0025082d daddu at,at,a1 54 120000160: fc250564 sd a1,1380\(at\) 55 120000164: df818020 ld at,-32736\(gp\) 56 120000168: 88250000 lwl a1,0\(at\) 57 12000016c: 98250003 lwr a1,3\(at\) 58 120000170: df818020 ld at,-32736\(gp\) 59 120000174: 6421000c daddiu at,at,12 60 120000178: 88250000 lwl a1,0\(at\) 61 12000017c: 98250003 lwr a1,3\(at\) 62 120000180: df818020 ld at,-32736\(gp\) 63 120000184: 0031082d daddu at,at,s1 64 120000188: 88250000 lwl a1,0\(at\) 65 12000018c: 98250003 lwr a1,3\(at\) 66 120000190: df818020 ld at,-32736\(gp\) 67 120000194: 6421000c daddiu at,at,12 68 120000198: 0031082d daddu at,at,s1 69 12000019c: 88250000 lwl a1,0\(at\) 70 1200001a0: 98250003 lwr a1,3\(at\) 71 1200001a4: df818020 ld at,-32736\(gp\) 72 1200001a8: 64210022 daddiu at,at,34 73 1200001ac: 0025082d daddu at,at,a1 74 1200001b0: 88250000 lwl a1,0\(at\) 75 1200001b4: 98250003 lwr a1,3\(at\) 76 1200001b8: df818020 ld at,-32736\(gp\) 77 1200001bc: 64210038 daddiu at,at,56 78 1200001c0: 0025082d daddu at,at,a1 79 1200001c4: a8250000 swl a1,0\(at\) 80 1200001c8: b8250003 swr a1,3\(at\) 81 1200001cc: df858020 ld a1,-32736\(gp\) 82 1200001d0: df858030 ld a1,-32720\(gp\) 83 1200001d4: df858038 ld a1,-32712\(gp\) 84 1200001d8: df858020 ld a1,-32736\(gp\) 85 1200001dc: 00b1282d daddu a1,a1,s1 86 1200001e0: df858030 ld a1,-32720\(gp\) 87 1200001e4: 00b1282d daddu a1,a1,s1 88 1200001e8: df858038 ld a1,-32712\(gp\) 89 1200001ec: 00b1282d daddu a1,a1,s1 90 1200001f0: df858028 ld a1,-32728\(gp\) 91 1200001f4: dca5052c ld a1,1324\(a1\) 92 1200001f8: df858028 ld a1,-32728\(gp\) 93 1200001fc: dca50538 ld a1,1336\(a1\) 94 120000200: df858028 ld a1,-32728\(gp\) 95 120000204: 00b1282d daddu a1,a1,s1 96 120000208: dca5052c ld a1,1324\(a1\) 97 12000020c: df858028 ld a1,-32728\(gp\) 98 120000210: 00b1282d daddu a1,a1,s1 99 120000214: dca50538 ld a1,1336\(a1\) 100 120000218: df818028 ld at,-32728\(gp\) 101 12000021c: 0025082d daddu at,at,a1 102 120000220: dc25054e ld a1,1358\(at\) 103 120000224: df818028 ld at,-32728\(gp\) 104 120000228: 0025082d daddu at,at,a1 105 12000022c: fc250564 sd a1,1380\(at\) 106 120000230: df818020 ld at,-32736\(gp\) 107 120000234: 88250000 lwl a1,0\(at\) 108 120000238: 98250003 lwr a1,3\(at\) 109 12000023c: df818030 ld at,-32720\(gp\) 110 120000240: 88250000 lwl a1,0\(at\) 111 120000244: 98250003 lwr a1,3\(at\) 112 120000248: df818020 ld at,-32736\(gp\) 113 12000024c: 0031082d daddu at,at,s1 114 120000250: 88250000 lwl a1,0\(at\) 115 120000254: 98250003 lwr a1,3\(at\) 116 120000258: df818030 ld at,-32720\(gp\) 117 12000025c: 0031082d daddu at,at,s1 118 120000260: 88250000 lwl a1,0\(at\) 119 120000264: 98250003 lwr a1,3\(at\) 120 120000268: df818040 ld at,-32704\(gp\) 121 12000026c: 0025082d daddu at,at,a1 122 120000270: 88250000 lwl a1,0\(at\) 123 120000274: 98250003 lwr a1,3\(at\) 124 120000278: df818048 ld at,-32696\(gp\) 125 12000027c: 0025082d daddu at,at,a1 126 120000280: a8250000 swl a1,0\(at\) 127 120000284: b8250003 swr a1,3\(at\) 128 120000288: df858050 ld a1,-32688\(gp\) 129 12000028c: df858050 ld a1,-32688\(gp\) 130 120000290: df998050 ld t9,-32688\(gp\) 131 120000294: df998050 ld t9,-32688\(gp\) 132 120000298: df998050 ld t9,-32688\(gp\) 133 12000029c: 0411ff90 bal 1200000e0 <fn> 134 1200002a0: 00000000 nop 135 1200002a4: df998050 ld t9,-32688\(gp\) 136 1200002a8: 0411ff8d bal 1200000e0 <fn> 137 1200002ac: 00000000 nop 138 1200002b0: df858058 ld a1,-32680\(gp\) 139 1200002b4: df858058 ld a1,-32680\(gp\) 140 1200002b8: 64a5000c daddiu a1,a1,12 141 1200002bc: df858058 ld a1,-32680\(gp\) 142 1200002c0: 3c010001 lui at,0x1 143 1200002c4: 3421e240 ori at,at,0xe240 144 1200002c8: 00a1282d daddu a1,a1,at 145 1200002cc: df858058 ld a1,-32680\(gp\) 146 1200002d0: 00b1282d daddu a1,a1,s1 147 1200002d4: df858058 ld a1,-32680\(gp\) 148 1200002d8: 64a5000c daddiu a1,a1,12 149 1200002dc: 00b1282d daddu a1,a1,s1 150 1200002e0: df858058 ld a1,-32680\(gp\) 151 1200002e4: 3c010001 lui at,0x1 152 1200002e8: 3421e240 ori at,at,0xe240 153 1200002ec: 00a1282d daddu a1,a1,at 154 1200002f0: 00b1282d daddu a1,a1,s1 155 1200002f4: df858028 ld a1,-32728\(gp\) 156 1200002f8: dca505a4 ld a1,1444\(a1\) 157 1200002fc: df858028 ld a1,-32728\(gp\) 158 120000300: dca505b0 ld a1,1456\(a1\) 159 120000304: df858028 ld a1,-32728\(gp\) 160 120000308: 00b1282d daddu a1,a1,s1 161 12000030c: dca505a4 ld a1,1444\(a1\) 162 120000310: df858028 ld a1,-32728\(gp\) 163 120000314: 00b1282d daddu a1,a1,s1 164 120000318: dca505b0 ld a1,1456\(a1\) 165 12000031c: df818028 ld at,-32728\(gp\) 166 120000320: 0025082d daddu at,at,a1 167 120000324: dc2505c6 ld a1,1478\(at\) 168 120000328: df818028 ld at,-32728\(gp\) 169 12000032c: 0025082d daddu at,at,a1 170 120000330: fc2505dc sd a1,1500\(at\) 171 120000334: df818058 ld at,-32680\(gp\) 172 120000338: 88250000 lwl a1,0\(at\) 173 12000033c: 98250003 lwr a1,3\(at\) 174 120000340: df818058 ld at,-32680\(gp\) 175 120000344: 6421000c daddiu at,at,12 176 120000348: 88250000 lwl a1,0\(at\) 177 12000034c: 98250003 lwr a1,3\(at\) 178 120000350: df818058 ld at,-32680\(gp\) 179 120000354: 0031082d daddu at,at,s1 180 120000358: 88250000 lwl a1,0\(at\) 181 12000035c: 98250003 lwr a1,3\(at\) 182 120000360: df818058 ld at,-32680\(gp\) 183 120000364: 6421000c daddiu at,at,12 184 120000368: 0031082d daddu at,at,s1 185 12000036c: 88250000 lwl a1,0\(at\) 186 120000370: 98250003 lwr a1,3\(at\) 187 120000374: df818058 ld at,-32680\(gp\) 188 120000378: 64210022 daddiu at,at,34 189 12000037c: 0025082d daddu at,at,a1 190 120000380: 88250000 lwl a1,0\(at\) 191 120000384: 98250003 lwr a1,3\(at\) 192 120000388: df818058 ld at,-32680\(gp\) 193 12000038c: 64210038 daddiu at,at,56 194 120000390: 0025082d daddu at,at,a1 195 120000394: a8250000 swl a1,0\(at\) 196 120000398: b8250003 swr a1,3\(at\) 197 12000039c: df858058 ld a1,-32680\(gp\) 198 1200003a0: df858060 ld a1,-32672\(gp\) 199 1200003a4: df858068 ld a1,-32664\(gp\) 200 1200003a8: df858058 ld a1,-32680\(gp\) 201 1200003ac: 00b1282d daddu a1,a1,s1 202 1200003b0: df858060 ld a1,-32672\(gp\) 203 1200003b4: 00b1282d daddu a1,a1,s1 204 1200003b8: df858068 ld a1,-32664\(gp\) 205 1200003bc: 00b1282d daddu a1,a1,s1 206 1200003c0: df858028 ld a1,-32728\(gp\) 207 1200003c4: dca505a4 ld a1,1444\(a1\) 208 1200003c8: df858028 ld a1,-32728\(gp\) 209 1200003cc: dca505b0 ld a1,1456\(a1\) 210 1200003d0: df858028 ld a1,-32728\(gp\) 211 1200003d4: 00b1282d daddu a1,a1,s1 212 1200003d8: dca505a4 ld a1,1444\(a1\) 213 1200003dc: df858028 ld a1,-32728\(gp\) 214 1200003e0: 00b1282d daddu a1,a1,s1 215 1200003e4: dca505b0 ld a1,1456\(a1\) 216 1200003e8: df818028 ld at,-32728\(gp\) 217 1200003ec: 0025082d daddu at,at,a1 218 1200003f0: dc2505c6 ld a1,1478\(at\) 219 1200003f4: df818028 ld at,-32728\(gp\) 220 1200003f8: 0025082d daddu at,at,a1 221 1200003fc: fc2505dc sd a1,1500\(at\) 222 120000400: df818058 ld at,-32680\(gp\) 223 120000404: 88250000 lwl a1,0\(at\) 224 120000408: 98250003 lwr a1,3\(at\) 225 12000040c: df818060 ld at,-32672\(gp\) 226 120000410: 88250000 lwl a1,0\(at\) 227 120000414: 98250003 lwr a1,3\(at\) 228 120000418: df818058 ld at,-32680\(gp\) 229 12000041c: 0031082d daddu at,at,s1 230 120000420: 88250000 lwl a1,0\(at\) 231 120000424: 98250003 lwr a1,3\(at\) 232 120000428: df818060 ld at,-32672\(gp\) 233 12000042c: 0031082d daddu at,at,s1 234 120000430: 88250000 lwl a1,0\(at\) 235 120000434: 98250003 lwr a1,3\(at\) 236 120000438: df818070 ld at,-32656\(gp\) 237 12000043c: 0025082d daddu at,at,a1 238 120000440: 88250000 lwl a1,0\(at\) 239 120000444: 98250003 lwr a1,3\(at\) 240 120000448: df818078 ld at,-32648\(gp\) 241 12000044c: 0025082d daddu at,at,a1 242 120000450: a8250000 swl a1,0\(at\) 243 120000454: b8250003 swr a1,3\(at\) 244 120000458: df858080 ld a1,-32640\(gp\) 245 12000045c: df858080 ld a1,-32640\(gp\) 246 120000460: df998080 ld t9,-32640\(gp\) 247 120000464: df998080 ld t9,-32640\(gp\) 248 120000468: df998080 ld t9,-32640\(gp\) 249 12000046c: 0411001d bal 1200004e4 <fn2> 250 120000470: 00000000 nop 251 120000474: df998080 ld t9,-32640\(gp\) 252 120000478: 0411001a bal 1200004e4 <fn2> 253 12000047c: 00000000 nop 254 120000480: 1000ff17 b 1200000e0 <fn> 255 120000484: df858020 ld a1,-32736\(gp\) 256 120000488: df858028 ld a1,-32728\(gp\) 257 12000048c: 10000015 b 1200004e4 <fn2> 258 120000490: dca505a4 ld a1,1444\(a1\) 259 120000494: 1000ff12 b 1200000e0 <fn> 260 120000498: df858020 ld a1,-32736\(gp\) 261 12000049c: df858060 ld a1,-32672\(gp\) 262 1200004a0: 10000010 b 1200004e4 <fn2> 263 1200004a4: 00000000 nop 264 1200004a8: df858038 ld a1,-32712\(gp\) 265 1200004ac: 1000ff0c b 1200000e0 <fn> 266 1200004b0: 00000000 nop 267 1200004b4: df858028 ld a1,-32728\(gp\) 268 1200004b8: 1000000a b 1200004e4 <fn2> 269 1200004bc: dca505a4 ld a1,1444\(a1\) 270 1200004c0: df858028 ld a1,-32728\(gp\) 271 1200004c4: 1000ff06 b 1200000e0 <fn> 272 1200004c8: dca50538 ld a1,1336\(a1\) 273 1200004cc: df818028 ld at,-32728\(gp\) 274 1200004d0: 0025082d daddu at,at,a1 275 1200004d4: 10000003 b 1200004e4 <fn2> 276 1200004d8: dc2505c6 ld a1,1478\(at\) 277 \.\.\. 278 279 00000001200004e4 <fn2>: 280 \.\.\. 281 Disassembly of section \.data: 282 283 00000001200104f0 <_fdata>: 284 \.\.\. 285 286 000000012001052c <dg1>: 287 \.\.\. 288 289 0000000120010568 <sp2>: 290 \.\.\. 291 292 00000001200105a4 <dg2>: 293 \.\.\. 294 Disassembly of section \.got: 295 296 00000001200105e0 <_GLOBAL_OFFSET_TABLE_>: 297 \.\.\. 298 1200105e8: 80000000 .* 299 1200105ec: 00000000 .* 300 1200105f0: 00000001 .* 301 1200105f4: 2001052c .* 302 1200105f8: 00000001 .* 303 1200105fc: 20010000 .* 304 120010600: 00000001 .* 305 120010604: 20010538 .* 306 120010608: 00000001 .* 307 12001060c: 2002e76c .* 308 120010610: 00000001 .* 309 120010614: 2001054e .* 310 120010618: 00000001 .* 311 12001061c: 20010564 .* 312 120010620: 00000001 .* 313 120010624: 200000e0 .* 314 120010628: 00000001 .* 315 12001062c: 200105a4 .* 316 120010630: 00000001 .* 317 120010634: 200105b0 .* 318 120010638: 00000001 .* 319 12001063c: 2002e7e4 .* 320 120010640: 00000001 .* 321 120010644: 200105c6 .* 322 120010648: 00000001 .* 323 12001064c: 200105dc .* 324 120010650: 00000001 .* 325 120010654: 200004e4 .* 326 \.\.\. 327 #pass 328