1 #name: aarch64-farcall-b-plt
2 #source: farcall-b-plt.s
3 #as:
4 #ld: -shared
5 #objdump: -dr
6 #...
7 
8 Disassembly of section .plt:
9 
10 .* <foo@plt.*>:
11 .*:	a9bf7bf0 	stp	x16, x30, \[sp,#-16\]!
12 .*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
13 .*:	.* 	ldr	x17, \[x16,#.*\]
14 .*:	.* 	add	x16, x16, #.*
15 .*:	d61f0220 	br	x17
16 .*:	d503201f 	nop
17 .*:	d503201f 	nop
18 .*:	d503201f 	nop
19 
20 .* <foo@plt>:
21 .*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
22 .*:	.* 	ldr	x17, \[x16,#.*\]
23 .*:	.* 	add	x16, x16, #.*
24 .*:	d61f0220 	br	x17
25 
26 Disassembly of section .text:
27 
28 .* <_start>:
29 	...
30 .*:	.* 	b	.* <__foo_veneer>
31 .*:	d65f03c0 	ret
32 .*:	.* 	b	.* <__foo_veneer\+.*>
33 
34 .* <__foo_veneer>:
35 .*:	.* 	adrp	x16, 0 <foo@plt.*>
36 .*:	.* 	add	x16, x16, #.*
37 .*:	d61f0200 	br	x16
38 	...
39