diff options
author | Jiong Wang <jiong.wang@arm.com> | 2014-08-26 15:48:47 +0100 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2014-08-26 15:48:47 +0100 |
commit | 614b09cefb3bafa840fe5ed06c58024b0ff9c1cb (patch) | |
tree | 8f81648e5f08f7309aeb9a379e38e78a3b14ae56 /ld/testsuite/ld-aarch64/copy-reloc-exe.s | |
parent | 2836a869c4607fd1200b928986092ffed20c1d32 (diff) | |
download | gdb-614b09cefb3bafa840fe5ed06c58024b0ff9c1cb.zip gdb-614b09cefb3bafa840fe5ed06c58024b0ff9c1cb.tar.gz gdb-614b09cefb3bafa840fe5ed06c58024b0ff9c1cb.tar.bz2 |
[AArch64] Improve copy relocation support on four absolute relocation types
2014-08-26 Jiong Wang <jiong.wang@arm.com>
bfd/
* elfnn-aarch64.c (elfNN_aarch64_check_relocs): Initialize non_got_ref
properly for MOVW_G0/1/2_NC and MOVW_G3. Reject them when linking
shared library.
(elfNN_aarch64_gc_sweep_hook): Add check on these relocs.
ld/testsuite/
* ld-aarch64/copy-relocs-so.s: New test file.
* ld-aarch64/copy-relocs-exe.s: Likewise.
* ld-aarch64/copy-relocs.d: New expectation file.
* ld-aarch64/emit-relocs-264-bad.d: New test file.
* ld-aarch64/emit-relocs-266-bad.d: Likewise.
* ld-aarch64/emit-relocs-268-bad.d: Likewise.
* ld-aarch64/emit-relocs-269-bad.d: Likewise.
* ld-aarch64/aarch64-elf.exp: Run new added test.
Diffstat (limited to 'ld/testsuite/ld-aarch64/copy-reloc-exe.s')
-rw-r--r-- | ld/testsuite/ld-aarch64/copy-reloc-exe.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/copy-reloc-exe.s b/ld/testsuite/ld-aarch64/copy-reloc-exe.s new file mode 100644 index 0000000..cafc700 --- /dev/null +++ b/ld/testsuite/ld-aarch64/copy-reloc-exe.s @@ -0,0 +1,7 @@ + .text + .global main +main: + movz x0,:abs_g0_nc:global_a + movk x0,:abs_g1_nc:global_a + movk x0,:abs_g2_nc:global_a + movk x0,:abs_g3:global_a |