aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-vax-elf/got-local-ref-off-external.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-vax-elf/got-local-ref-off-external.s')
-rw-r--r--ld/testsuite/ld-vax-elf/got-local-ref-off-external.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-vax-elf/got-local-ref-off-external.s b/ld/testsuite/ld-vax-elf/got-local-ref-off-external.s
new file mode 100644
index 0000000..260194c
--- /dev/null
+++ b/ld/testsuite/ld-vax-elf/got-local-ref-off-external.s
@@ -0,0 +1,12 @@
+ .text
+ .globl foo
+ .type foo, @function
+foo:
+ .word 0
+ movab bar_hidden, %r0
+ movab bar_visible, %r1
+ movab baz, %r2
+ movab baz + 1, %r2
+ movab baz + 2, %r2
+ ret
+ .size foo, . - foo