aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/rela-idempotent.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/rela-idempotent.s')
-rw-r--r--ld/testsuite/ld-aarch64/rela-idempotent.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/rela-idempotent.s b/ld/testsuite/ld-aarch64/rela-idempotent.s
new file mode 100644
index 0000000..7cb5dff
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/rela-idempotent.s
@@ -0,0 +1,14 @@
+# this checks that aarch64 RELA relocs are ignoring existing section
+# content of the relocated place
+ .text
+ .global _start
+_start:
+ ret
+
+ .data
+ .p2align 4
+l: .long 0x11111111, 0x22222222
+q: .quad 0x4444444433333333
+
+ .reloc l, BFD_RELOC_64, q+42
+ .reloc q, BFD_RELOC_64, l+84