Commit | Line | Data |
---|---|---|
e93c640e AO |
1 | #objdump: -dr --prefix-addresses --show-raw-insn |
2 | #name: SH PIC constructs | |
3 | # Test SH PIC constructs: | |
4 | ||
5 | .*: file format elf.*sh.* | |
6 | ||
7 | Disassembly of section \.text: | |
8 | 0x00000000 c7 0a mova 0x0000002c,r0 | |
9 | 0x00000002 dc 0a mov\.l 0x0000002c,r12 ! 0x0 | |
10 | 0x00000004 3c 0c add r0,r12 | |
11 | 0x00000006 d0 0a mov\.l 0x00000030,r0 ! 0x0 | |
12 | 0x00000008 00 ce mov\.l @\(r0,r12\),r0 | |
13 | 0x0000000a 40 0b jsr @r0 | |
14 | 0x0000000c 00 09 nop | |
15 | 0x0000000e d0 09 mov\.l 0x00000034,r0 ! 0x0 | |
16 | 0x00000010 30 cc add r12,r0 | |
17 | 0x00000012 40 0b jsr @r0 | |
18 | 0x00000014 00 09 nop | |
19 | 0x00000016 d1 08 mov\.l 0x00000038,r1 ! 0x0 | |
20 | 0x00000018 c7 07 mova 0x00000038,r0 | |
21 | 0x0000001a 30 1c add r1,r0 | |
22 | 0x0000001c 40 0b jsr @r0 | |
23 | 0x0000001e 00 09 nop | |
24 | 0x00000020 d0 06 mov\.l 0x0000003c,r0 ! 0x16 | |
25 | 0x00000022 40 0b jsr @r0 | |
26 | 0x00000024 00 09 nop | |
27 | 0x00000026 d0 06 mov\.l 0x00000040,r0 ! 0x14 | |
28 | 0x00000028 40 0b jsr @r0 | |
29 | 0x0000002a 00 09 nop | |
30 | \.\.\. | |
31 | 2c: R_SH_DIR32 GLOBAL_OFFSET_TABLE | |
32 | 30: R_SH_GOT32 foo | |
33 | 34: R_SH_GOTOFF foo | |
34 | 38: R_SH_PLT32 foo | |
35 | 0x0000003c 00 00 \.word 0x0000 | |
36 | 3c: R_SH_PLT32 foo | |
37 | 0x0000003e 00 16 mov\.l r1,@\(r0,r0\) | |
38 | 0x00000040 00 00 \.word 0x0000 | |
39 | 40: R_SH_PLT32 foo | |
40 | 0x00000042 00 14 mov\.b r1,@\(r0,r0\) | |
0174e383 KK |
41 | 0x00000044 00 00 \.word 0x0000 |
42 | 44: R_SH_PLT32 foo | |
43 | 0x00000046 00 1e mov\.l @\(r0,r1\),r0 |