Commit | Line | Data |
---|---|---|
1 | .text | |
2 | .set noreorder | |
3 | .space 0x1000 | |
4 | ||
5 | .align 4 | |
6 | .set micromips | |
7 | .globl foo | |
8 | .ent foo | |
9 | foo: | |
10 | nor $0, $0 | |
11 | jal foo - 0x3fffffe | |
12 | nor $0, $0 | |
13 | jalx bar - 0x7fffffc | |
14 | nor $0, $0 | |
15 | jalr $0, $ra | |
16 | nor $0, $0 | |
17 | .end foo | |
18 | ||
19 | .align 4 | |
20 | .set nomicromips | |
21 | .globl bar | |
22 | .ent bar | |
23 | bar: | |
24 | nor $0, $0 | |
25 | jalx foo - 0x7fffffc | |
26 | nor $0, $0 | |
27 | jal bar - 0x7fffffc | |
28 | nor $0, $0 | |
29 | jalr $0, $ra | |
30 | nor $0, $0 | |
31 | .end bar | |
32 | ||
33 | # Force some (non-delay-slot) zero bytes, to make 'objdump' print ... | |
34 | .align 4, 0 | |
35 | .space 16 |