aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/farcall-b-gsym.s
blob: b7bfe2300523d21c06d35498d406d8361151f553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	.global _start
	.global bar_gsym

# We will place the section .text at 0x1000.

	.text

_start:
# for long jump (JUMP26) to global symbol, we shouldn't insert veneer
# as the veneer will clobber IP0/IP1 which is caller saved, gcc only
# reserve them for function call relocation (CALL26).
	b bar_gsym
	# ((1 << 25) - 1) << 2
	.skip 134217724, 0
bar_gsym:
	nop
	ret