aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/farcall-bl-plt.d
blob: b26a71ae9f214922c01b395f112363d57393b8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#name: aarch64-farcall-bl-plt
#source: farcall-bl-plt.s
#as:
#ld: -shared
#objdump: -dr
#...

Disassembly of section .plt:

.* <.plt>:
.*:	a9bf7bf0 	stp	x16, x30, \[sp, #-16\]!
.*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
.*:	.* 	ldr	[wx]17, \[x16, #.*\]
.*:	.* 	add	[wx]16, [wx]16, #.*
.*:	d61f0220 	br	x17
.*:	d503201f 	nop
.*:	d503201f 	nop
.*:	d503201f 	nop

.* <foo@plt>:
.*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
.*:	.* 	ldr	[wx]17, \[x16, #.*\]
.*:	.* 	add	[wx]16, [wx]16, #.*
.*:	d61f0220 	br	x17

Disassembly of section .text:

.* <_start>:
	...
.*:	.* 	bl	.* <__foo_veneer>
.*:	d65f03c0 	ret
.*:	.* 	b	.* <__foo_veneer\+.*>

.* <__foo_veneer>:
.*:	.* 	adrp	x16, 0 <.*>
.*:	.* 	add	x16, x16, #.*
.*:	d61f0200 	br	x16
	...