summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/weak1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-sh/weak1.s')
-rw-r--r--ld/testsuite/ld-sh/weak1.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-sh/weak1.s b/ld/testsuite/ld-sh/weak1.s
new file mode 100644
index 0000000..79192af
--- /dev/null
+++ b/ld/testsuite/ld-sh/weak1.s
@@ -0,0 +1,19 @@
+ .data
+ .align 2
+d0:
+ .long 1
+ .global w0
+w0:
+ .long 0
+ .weak w0
+ .text
+ .align 5
+f:
+ mov.l .L3,r1
+ mov.l @r1,r0
+ rts
+ nop
+ .align 2
+.L3:
+ .long w0
+