]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[AArch64][4/6] LD support TLSLD move/add relocation types
authorJiong Wang <jiong.wang@arm.com>
Wed, 19 Aug 2015 10:18:25 +0000 (11:18 +0100)
committerJiong Wang <jiong.wang@arm.com>
Wed, 19 Aug 2015 15:40:18 +0000 (16:40 +0100)
commit6ffe9a1ba36f3a896ae323e35a207b6451e8f7f9
tree352d08b939394f5b6749416c6e1800966d999be6
parent49df5539f9070c01128135a7d63f44b2efc4de6a
[AArch64][4/6] LD support TLSLD move/add relocation types

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

bfd/
  PR ld/18276
  * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation
  types, including BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12,
  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0,
  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC,
  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1,
  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC,
  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2.
  (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-87.s: New testcase.
  * ld-aarch64/emit-relocs-88.s: Likewise.
  * ld-aarch64/emit-relocs-88-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-89.s: Likewise.
  * ld-aarch64/emit-relocs-90.s: Likewise.
  * ld-aarch64/emit-relocs-90-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-523.s: Likewise.
  * ld-aarch64/emit-relocs-524.s: Likewise.
  * ld-aarch64/emit-relocs-525.s: Likewise.
  * ld-aarch64/emit-relocs-527.s: Likewise.
  * ld-aarch64/emit-relocs-526.s: Likewise.
  * ld-aarch64/emit-relocs-528.s: Likewise.
  * ld-aarch64/emit-relocs-528-overflow.s: Likewise.
  * ld-aarch64/emit-relocs-87.d: New expectation file.
  * ld-aarch64/emit-relocs-88.d: Likewise.
  * ld-aarch64/emit-relocs-88-overflow.d: Likewise.
  * ld-aarch64/emit-relocs-89.d: Likewise.
  * ld-aarch64/emit-relocs-90.d: Likewise.
  * ld-aarch64/emit-relocs-90-overflow.d: Likewise.
  * ld-aarch64/emit-relocs-91.d: Likewise.
  * ld-aarch64/emit-relocs-523.d: Likewise.
  * ld-aarch64/emit-relocs-524.d: Likewise.
  * ld-aarch64/emit-relocs-525.d: Likewise.
  * ld-aarch64/emit-relocs-526.d: Likewise.
  * ld-aarch64/emit-relocs-527.d: Likewise.
  * ld-aarch64/emit-relocs-528.d: Likewise.
  * ld-aarch64/emit-relocs-528-overflow.d: Likewise.
  * ld-aarch64/aarch64-elf.exp: Run new testcases.
33 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-523.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-523.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-524.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-524.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-525.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-525.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-526-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-526-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-526.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-526.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-527.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-527.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-528-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-528-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-528.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-528.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-87.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-87.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-88-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-88-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-88.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-88.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-89.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-89.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-90-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-90-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-90.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-90.s [new file with mode: 0644]