Commit | Line | Data |
---|---|---|
fbc83def ILT |
1 | #objdump: -dr |
2 | #name: jal-svr4pic | |
3 | #as: -mips1 -KPIC | |
4 | ||
5 | # Test the jal macro with -KPIC. | |
6 | ||
7 | .*: +file format .*mips.* | |
8 | ||
9 | Disassembly of section .text: | |
10 | 0+0000 <[^>]*> lui \$gp,0 | |
11 | [ ]*RELOC: 0+0000 R_MIPS_HI16 _gp_disp | |
12 | 0+0004 <[^>]*> addiu \$gp,\$gp,0 | |
13 | [ ]*RELOC: 0+0004 R_MIPS_LO16 _gp_disp | |
14 | 0+0008 <[^>]*> addu \$gp,\$gp,\$t9 | |
15 | 0+000c <[^>]*> sw \$gp,0\(\$sp\) | |
16 | 0+0010 <[^>]*> jalr \$t9 | |
17 | ... | |
18 | 0+0018 <[^>]*> lw \$gp,0\(\$sp\) | |
19 | 0+001c <[^>]*> jalr \$a0,\$t9 | |
20 | ... | |
21 | 0+0024 <[^>]*> lw \$gp,0\(\$sp\) | |
22 | ... | |
23 | 0+002c <[^>]*> lw \$t9,0\(\$gp\) | |
24 | [ ]*RELOC: 0+002c R_MIPS_GOT16 .text | |
25 | ... | |
26 | 0+0034 <[^>]*> addiu \$t9,\$t9,0 | |
27 | [ ]*RELOC: 0+0034 R_MIPS_LO16 .text | |
28 | 0+0038 <[^>]*> jalr \$t9 | |
29 | ... | |
30 | 0+0040 <[^>]*> lw \$gp,0\(\$sp\) | |
31 | ... | |
32 | 0+0048 <[^>]*> lw \$t9,0\(\$gp\) | |
33 | [ ]*RELOC: 0+0048 R_MIPS_CALL16 external_text_label | |
34 | ... | |
35 | 0+0050 <[^>]*> jalr \$t9 | |
36 | ... | |
37 | 0+0058 <[^>]*> lw \$gp,0\(\$sp\) | |
38 | 0+005c <[^>]*> b 00000000 <text_label> | |
39 | ... |