Arm: Fix Arm disassembler mapping symbol search.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-aarch64 / pcrel.s
1 .hidden global_b
2 .text
3 .align 2
4 main:
5 # R_AARCH64_ADR_PREL_PG_HI21
6 # R_AARCH64_ADR_PREL_PG_HI21_NC
7 # R_AARCH64_ADR_LO_21
8 adrp x0, :pg_hi21:global_a
9 adrp x1, :pg_hi21_nc:global_a
10 adr x2, global_a
11
12 #R_AARCH64_LD_PREL_LO19
13 ldr x3, global_a
14
15 # R_AARCH64_PREL16
16 # R_AARCH64_PREL32
17 # R_AARCH64_PREL64
18 .hword global_a - .
19 .word global_a - .
20 .xword global_a - .
21
22 # Defined global symbol may bind externally because of copy relocation,
23 # while defined hidden symbol binds locally. LD should be able to
24 # differenciate this.
25 adrp x0, :pg_hi21:global_b
26 .xword global_b - .
This page took 0.047301 seconds and 4 git commands to generate.