[AArch64][8/8] LD support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12
authorJiong Wang <jiong.wang@arm.com>
Tue, 11 Aug 2015 16:44:30 +0000 (17:44 +0100)
committerJiong Wang <jiong.wang@arm.com>
Tue, 11 Aug 2015 20:26:41 +0000 (21:26 +0100)
commit40fbed84815b00960f7fac8d2e7857942df4308c
tree8b34a3e6e9238e69dc36aedddffa81df498c8e43
parent70151fb54ab6e3d5dc7f99fe3fbfa7ad2f1ab2af
[AArch64][8/8] LD support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12

2015-08-11  Jiong Wang  <jiong.wang@arm.com>

bfd/
  * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
  BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.
  (aarch64_reloc_got_type): Likewise.
  (elfNN_aarch64_final_link_relocate): Likewise.
  (elfNN_aarch64_relocate_section): Likewise.
  * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
  (_bfd_aarch64_elf_resolve_relocation): Likewise.

ld/testsuite/
  * ld-aarch64/emit-relocs-529.s: New testcase.
  * ld-aarch64/emit-relocs-529-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-86.s: Likewise.
  * ld-aarch64/emit-relocs-86-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-529.d: New expectation file.
  * ld-aarch64/emit-relocs-529-overflow.d: Likewise.
  * ld-aarch64/emit-relocs-86.d: Likewise.
  * ld-aarch64/emit-relocs-86-overflow.d: Likewise.
  * ld-aarch64/aarch64-elf.exp: Run new testcases.
13 files changed:
bfd/ChangeLog
bfd/elfnn-aarch64.c
bfd/elfxx-aarch64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/emit-relocs-529-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-529-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-529.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-529.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-86-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-86-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-86.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-86.s [new file with mode: 0644]