From f69e49203b49b7353748b78a9d8111440d9ac291 Mon Sep 17 00:00:00 2001 From: Jiong Wang Date: Tue, 11 Aug 2015 17:05:34 +0100 Subject: [AArch64][3/8] LD support BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21 2015-08-11 Jiong Wang bfd/ * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21. (aarch64_reloc_got_type): Likewise. (elfNN_aarch64_final_link_relocate): Likewise. (elfNN_aarch64_relocate_section): Likewise. (elfNN_aarch64_gc_sweep_hook): Likewise. (elfNN_aarch64_check_relocs): Likewise. * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. (_bfd_aarch64_elf_resolve_relocation): Likewise. ld/testsuite/ * ld-aarch64/tls-small-ld.s: New file. * ld-aarch64/tls-small-ld.d: Likewise. * ld-aarch64/aarch64-elf.exp: Run new test. --- ld/testsuite/ld-aarch64/tls-small-ld.s | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ld/testsuite/ld-aarch64/tls-small-ld.s (limited to 'ld/testsuite/ld-aarch64/tls-small-ld.s') diff --git a/ld/testsuite/ld-aarch64/tls-small-ld.s b/ld/testsuite/ld-aarch64/tls-small-ld.s new file mode 100644 index 0000000..0a8b6b9 --- /dev/null +++ b/ld/testsuite/ld-aarch64/tls-small-ld.s @@ -0,0 +1,7 @@ +// Test file for AArch64 LD -- reloc 518 + + .text +func: + add x1, x2, x3 + // BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21 + adrp x0, :tlsldm:dummy -- cgit v1.1