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

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

	.text

_start:
# for long jump (goto) to global symbol, we shouldn't insert veneer
# as the veneer will clobber r16/r17 which is caller saved, gcc only
# reserve them for function call relocation (call).
	goto bar_gsym
	;;
	# ((1 << 26) - 1) << 2
	.skip 268435452, 0
bar_gsym:
	nop
	;;
	ret
	;;