mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 14:53:32 +08:00
74a1bfe1d6
bfd/ 2015-10-02 Renlin Li <renlin.li@arm.com> * elfnn-aarch64.c (aarch64_reloc_got_type): Add support for BFD_RELOC_AARCH64_MOVW_GOTOFF_G1. (elfNN_aarch64_gc_sweep_hook): Likewise. (elfNN_aarch64_check_relocs): Likewise * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. (_bfd_aarch64_elf_resolve_relocation): Likewise (elfNN_aarch64_final_link_relocate): Calculate offset within GOT. ld/testsuite/ 2015-10-02 Renlin Li <renlin.li@arm.com> * ld-aarch64/emit-relocs-302.d: New. * ld-aarch64/emit-relocs-302.s: New. * ld-aarch64/aarch64-elf.exp: Run the new test.
13 lines
204 B
ArmAsm
13 lines
204 B
ArmAsm
.text
|
|
ldr x1, .Lgot
|
|
adr x2, .Lgot
|
|
add x1, x2, x1
|
|
|
|
movz x0, #:gotoff_g1:globala
|
|
movz x0, #:gotoff_g1:globalb
|
|
movz x0, #:gotoff_g1:globalc
|
|
ldr x0, [x1, x0]
|
|
|
|
.Lgot:
|
|
.dword _GLOBAL_OFFSET_TABLE_ - .
|