diff options
author | Jiong Wang <jiong.wang@arm.com> | 2015-08-19 10:58:13 +0100 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2015-08-19 16:30:47 +0100 |
commit | 753999c1ec8fa76bd5ed5509d1e5909d010e80ee (patch) | |
tree | 488d2280cb2a0ab764ecba171cddb56318aa31f6 /ld/testsuite/ld-aarch64/emit-relocs-530.s | |
parent | 13289c10e20281adf480d9822861412a7ade721d (diff) | |
download | gdb-753999c1ec8fa76bd5ed5509d1e5909d010e80ee.zip gdb-753999c1ec8fa76bd5ed5509d1e5909d010e80ee.tar.gz gdb-753999c1ec8fa76bd5ed5509d1e5909d010e80ee.tar.bz2 |
[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.
Diffstat (limited to 'ld/testsuite/ld-aarch64/emit-relocs-530.s')
-rw-r--r-- | ld/testsuite/ld-aarch64/emit-relocs-530.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-530.s b/ld/testsuite/ld-aarch64/emit-relocs-530.s new file mode 100644 index 0000000..72af8b2 --- /dev/null +++ b/ld/testsuite/ld-aarch64/emit-relocs-530.s @@ -0,0 +1,10 @@ + .global v1 + .global v2 + .section .tdata,"awT",%progbits +v1: + .word 0xdeaddead +v2: + .word 0xcafecafe + + .text + add x20, x9, #:dtprel_lo12_nc:v2 |