summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/farcall-section.s
blob: 86a070c7c272615aa88baa812ab8f3c2a8b0ca84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Test to ensure that an Aarch64 call exceeding 128MB generates an error
# if the destination is of type STT_SECTION (eg non-global symbol)

	.global _start

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

	.text

_start:
	bl bar

# We will place the section .foo at 0x8001020.

	.section .foo, "xa"

bar:
	ret