summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-s390/gotreloc-1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-s390/gotreloc-1.s')
-rw-r--r--ld/testsuite/ld-s390/gotreloc-1.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-s390/gotreloc-1.s b/ld/testsuite/ld-s390/gotreloc-1.s
new file mode 100644
index 0000000..b60d6c1
--- /dev/null
+++ b/ld/testsuite/ld-s390/gotreloc-1.s
@@ -0,0 +1,11 @@
+ .text
+ .globl foo
+foo:
+ lgrl %r1,bar@GOTENT
+ lg %r1,bar@GOT(%r12)
+ lrl %r1,bar@GOTENT
+ l %r1,bar@GOT(%r12)
+ ly %r1,bar@GOT(%r12)
+
+.globl bar
+bar: .long 0x123