]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-arm/thumb-plt.d
Fix: ld testsuite: Thumb PLT and GOT tests should be skipped on musl armhf targets
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-arm / thumb-plt.d
1 #source: thumb-plt.s
2 #name: Thumb only PLT and GOT
3 #ld: -shared -e0 -z max-page-size=0x10000
4 #objdump: -dr
5 #skip: *-*-pe *-*-wince *-*-vxworks armeb-*-* *-*-gnueabihf *-*-musleabihf
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: 000100(.+) \.word 0x000100\1
18
19 00000120 <foo@plt>:
20 120: f240 0c.+ movw ip, #[0-9]+ @ 0x.+
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}