blob: d83658c4fa8138a92b6909c9340e6b47ad2840d2 (
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
|
# expect copy relocation for all these scenarios.
.global p
.global q
.global r
.section .data.rel.ro,"aw",%progbits
.align 3
.type p, %object
.size p, 8
p:
.xword global_a
.type q, %object
.size q, 8
q:
.xword global_b
.type r, %object
.size r, 8
r:
# Any pc-rel relocation as no dynamic linker support on AArch64.
.xword global_c - .
.text
.global main
main:
# Symbols are referenced by any other relocation against read-only
# section.
movz x0, :abs_g0_nc:global_a
adrp x1, global_b
# pc-rel.
adrp x2, global_d
add x2, x2, #:lo12:global_c
|