[AArch64][2/6] LD support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC
authorJiong Wang <jiong.wang@arm.com>
Wed, 19 Aug 2015 09:58:13 +0000 (10:58 +0100)
committerJiong Wang <jiong.wang@arm.com>
Wed, 19 Aug 2015 15:30:47 +0000 (16:30 +0100)
commit753999c1ec8fa76bd5ed5509d1e5909d010e80ee
tree488d2280cb2a0ab764ecba171cddb56318aa31f6
parent13289c10e20281adf480d9822861412a7ade721d
[AArch64][2/6] LD support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC

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

bfd/
  * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
  BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC.
  (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-530.s: New testcase.
  * ld-aarch64/emit-relocs-92.s: Likewise.
  * ld-aarch64/emit-relocs-530.d: New expectation file.
  * ld-aarch64/emit-relocs-92.d: Likewise.
  * ld-aarch64/aarch64-elf.exp: Run new testcases.
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-530.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-530.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-92.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-92.s [new file with mode: 0644]