7018c0308a
This patch add BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14 relocation supoprt in bfd linker. 2015-06-01 Jiong Wang <jiong.wang@arm.com> bfd/ * elfnn-aarch64.c (aarch64_reloc_got_type): Support BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14. (elfNN_aarch64_final_link_relocate): Ditto. (elfNN_aarch64_gc_swap_hook): Ditto. (elfNN_aarch64_check_relocs): Ditto. * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto. ld/testsuite/ * ld-aarch64/emit-relocs-28.s: New test file. * ld-aarch64/emit-relocs-28.d: Ditto. * ld-aarch64/aarch64-elf.exp: Run new test.
19 lines
639 B
Makefile
19 lines
639 B
Makefile
#source: emit-relocs-28.s
|
|
#as: -mabi=ilp32
|
|
#ld: -m aarch64linux32 --defsym globala=0x11000 --defsym globalb=0x45000 --defsym globalc=0x1234 -e0 --emit-relocs
|
|
#objdump: -dr
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
Disassembly of section .text:
|
|
|
|
00400074 <\.text>:
|
|
400074: 90000082 adrp x2, 410000 <globalb\+0x3cb000>
|
|
400074: R_AARCH64_P32_ADR_PREL_PG_HI21 _GLOBAL_OFFSET_TABLE_
|
|
400078: f9408c40 ldr x0, \[x2,#280\]
|
|
400078: R_AARCH64_P32_LD32_GOTPAGE_LO14 globala
|
|
40007c: f9409040 ldr x0, \[x2,#288\]
|
|
40007c: R_AARCH64_P32_LD32_GOTPAGE_LO14 globalb
|
|
400080: f9408840 ldr x0, \[x2,#272\]
|
|
400080: R_AARCH64_P32_LD32_GOTPAGE_LO14 globalc
|