binutils-gdb/ld/testsuite/ld-arm/thumb-plt.d
Tamar Christina 95c210664d AArch64: Relax thumb-plt testcases regexpr.
The regexpr in these two files are a bit strict in that they don't account for
the slight changes in tags in certain arm targets which cause our address
offsets to change.   This changes the tests to allow slight movement in
locations while still strictly checking the rest.

ld/ChangeLog:

2020-08-03  Tamar Christina  <tamar.christina@arm.com>

	* testsuite/ld-arm/thumb-plt-got.d: Relax regexpr.
	* testsuite/ld-arm/thumb-plt.d: Likewise.
2020-08-14 07:52:00 +01:00

35 lines
830 B
Makefile

#source: thumb-plt.s
#name: Thumb only PLT and GOT
#ld: -shared -e0
#objdump: -dr
#skip: *-*-pe *-*-wince *-*-vxworks armeb-*-* *-*-gnueabihf
.*: +file format .*arm.*
Disassembly of section \.plt:
00000110 <\.plt>:
110: b500 push {lr}
112: f8df e008 ldr.w lr, \[pc, #8\] ; 11c <\.plt\+0xc>
116: 44fe add lr, pc
118: f85e ff08 ldr.w pc, \[lr, #8\]!
11c: 000100(.+) \.word 0x000100\1
00000120 <foo@plt>:
120: f240 0c.+ movw ip, #[0-9]+ ; 0x.+
124: f2c0 0c01 movt ip, #1
128: 44fc add ip, pc
12a: f8dc f000 ldr.w pc, \[ip\]
12e: e7fc b.n 12a <foo@plt\+0xa>
Disassembly of section .text:
00000130 <bar>:
130: b580 push {r7, lr}
132: af00 add r7, sp, #0
134: f7ff fff4 bl 120 <foo@plt>
138: 4603 mov r3, r0
13a: 4618 mov r0, r3
13c: bd80 pop {r7, pc}