edb2fa9a96
* ld-aarch64/gc-plt1.s: New file. * ld-aarch64/gc-plt2.s: Likewise. * ld-aarch64/gc-plt-hidden.s: Likewise. * ld-aarch64/gc-plt-main.s: Likewise. * ld-aarch64/gc-relocs-257.s: Likewise. * ld-aarch64/gc-plt-relocs.d: Update expected objdump. * ld-aarch64/gc-relocs-257.d: Likewise. * ld-aarch64/gc-relocs-257-dyn.d: Likewise. * ld-aarch64/aarch64-elf.exp: Add test.
9 lines
130 B
ArmAsm
9 lines
130 B
ArmAsm
plt_relocs:
|
|
adrp x0, :pg_hi21:var
|
|
ldr x0, [x0, :lo12:var]
|
|
|
|
adrp x1, :pg_hi21_nc:var
|
|
ldr x1, [x1, :lo12:var]
|
|
|
|
b bar
|
|
bl foo
|