Commit | Line | Data |
---|---|---|
15ccbdd7 TC |
1 | #source: thumb-plt.s |
2 | #name: Thumb only PLT and GOT | |
3 | #ld: -shared -e0 | |
4 | #objdump: -dr | |
5 | #skip: *-*-pe *-*-wince *-*-vxworks armeb-*-* *-*-gnueabihf | |
6 | ||
7 | .*: +file format .*arm.* | |
8 | ||
9 | ||
10 | Disassembly of section \.plt: | |
11 | ||
12 | 00000110 <\.plt>: | |
13 | 110: b500 push {lr} | |
14 | 112: f8df e008 ldr.w lr, \[pc, #8\] ; 11c <\.plt\+0xc> | |
15 | 116: 44fe add lr, pc | |
16 | 118: f85e ff08 ldr.w pc, \[lr, #8\]! | |
17 | 11c: 0001009c \.word 0x0001009c | |
18 | ||
19 | 00000120 <foo@plt>: | |
20 | 120: f240 0c98 movw ip, #152 ; 0x98 | |
21 | 124: f2c0 0c01 movt ip, #1 | |
22 | 128: 44fc add ip, pc | |
23 | 12a: f8dc f000 ldr.w pc, \[ip\] | |
24 | 12e: e7fc b.n 12a <foo@plt\+0xa> | |
25 | ||
26 | Disassembly of section .text: | |
27 | ||
28 | 00000130 <bar>: | |
29 | 130: b580 push {r7, lr} | |
30 | 132: af00 add r7, sp, #0 | |
31 | 134: f7ff fff4 bl 120 <foo@plt> | |
32 | 138: 4603 mov r3, r0 | |
33 | 13a: 4618 mov r0, r3 | |
34 | 13c: bd80 pop {r7, pc} |