[AArch64][6/6] LD support TLSLD load/store relocation types
authorJiong Wang <jiong.wang@arm.com>
Wed, 19 Aug 2015 10:26:56 +0000 (11:26 +0100)
committerJiong Wang <jiong.wang@arm.com>
Wed, 19 Aug 2015 15:57:38 +0000 (16:57 +0100)
commit07c9aa07cdcf00eff8e186f3ca1779e5e3ffdb75
tree7db77658cc9a0d1869f7eecb356f5dfe49874383
parent4c5625238cccb048261d7ce0eb748ee5e0d67cf0
[AArch64][6/6] LD support TLSLD load/store relocation types

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

bfd/
  * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation
  types, including BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
  BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
  BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
  BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
  BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
  BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
  BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
  BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC.
  (elfNN_aarch64_final_link_relocate): Likewise.
  * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
  (_bfd_aarch64_elf_resolve_relocation): Likewise.

ld/testsuite/
  * ld-aarch64/emit-relocs-531.s: New testcase.
  * ld-aarch64/emit-relocs-531-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-532.s: Likewise.
  * ld-aarch64/emit-relocs-533.s: Likewise.
  * ld-aarch64/emit-relocs-533-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-534.s: Likewise.
  * ld-aarch64/emit-relocs-535.s: Likewise.
  * ld-aarch64/emit-relocs-535-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-536.s: Likewise.
  * ld-aarch64/emit-relocs-537.s: Likewise.
  * ld-aarch64/emit-relocs-537-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-538.s: Likewise.
  * ld-aarch64/emit-relocs-531.d: New expectation file.
  * ld-aarch64/emit-relocs-531-overflow.d: Likewise.
  * ld-aarch64/emit-relocs-532.d: Likewise.
  * ld-aarch64/emit-relocs-533.d: Likewise.
  * ld-aarch64/emit-relocs-533-overflow.d: Likewise.
  * ld-aarch64/emit-relocs-534.d: Likewise.
  * ld-aarch64/emit-relocs-535.d: Likewise.
  * ld-aarch64/emit-relocs-535-overflow.d: Likewise.
  * ld-aarch64/emit-relocs-536.d: Likewise.
  * ld-aarch64/emit-relocs-537.d: Likewise.
  * ld-aarch64/emit-relocs-537-overflow.d: Likewise.
  * ld-aarch64/emit-relocs-538.d: Likewise.
  * ld-aarch64/aarch64-elf.exp: Run new testcases.
29 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-531-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-531-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-531.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-531.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-532.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-532.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-533-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-533-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-533.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-533.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-534.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-534.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-535-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-535-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-535.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-535.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-536.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-536.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-537-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-537-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-537.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-537.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-538.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-538.s [new file with mode: 0644]