summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/pcrel-reloc-rel.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/pcrel-reloc-rel.s')
-rw-r--r--ld/testsuite/ld-riscv-elf/pcrel-reloc-rel.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/pcrel-reloc-rel.s b/ld/testsuite/ld-riscv-elf/pcrel-reloc-rel.s
new file mode 100644
index 00000000000..fb0e6c09f22
--- /dev/null
+++ b/ld/testsuite/ld-riscv-elf/pcrel-reloc-rel.s
@@ -0,0 +1,9 @@
+.data
+# Makes sure "sym" doesn't end up at the beginning of ".data", as that makes it
+# tough to then later detect it from scripts.
+.global buf
+buf:
+ .fill 8192, 4, 1
+.global sym
+sym:
+ .fill 8192, 4, 2