aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/farcall-b-section.d
blob: 7314eafa61a74b1b1196bbe8b4712e2393295f24 (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
#name: aarch64-farcall-b-section
#source: farcall-b-section.s
#as:
#ld: -Ttext 0x1000 --section-start .foo=0x8001000
#objdump: -dr
#...

Disassembly of section .text:

.* <_start>:
    1000:	1400000a 	b	1028 <___veneer>
    1004:	14000005 	b	1018 <___veneer>
    1008:	d65f03c0 	ret
    100c:	d503201f 	nop
    1010:	1400000e 	b	1048 <___veneer\+0x20>
    1014:	d503201f 	nop

.* <___veneer>:
    1018:	90040010 	adrp	x16, 8001000 <bar>
    101c:	91001210 	add	x16, x16, #0x4
    1020:	d61f0200 	br	x16
    1024:	00000000 	.inst	0x00000000 ; undefined

.* <___veneer>:
    1028:	90040010 	adrp	x16, 8001000 <bar>
    102c:	91000210 	add	x16, x16, #0x0
    1030:	d61f0200 	br	x16
	...

Disassembly of section .foo:

.* <bar>:
 8001000:	d65f03c0 	ret

.* <bar2>:
 8001004:	d65f03c0 	ret