aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/newlink/testdata/hello.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/newlink/testdata/hello.s')
-rw-r--r--src/cmd/newlink/testdata/hello.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cmd/newlink/testdata/hello.s b/src/cmd/newlink/testdata/hello.s
new file mode 100644
index 0000000000..32ed675033
--- /dev/null
+++ b/src/cmd/newlink/testdata/hello.s
@@ -0,0 +1,15 @@
+TEXT _rt0_go(SB),7,$0
+ MOVL $1, DI
+ MOVL $hello<>(SB), SI
+ MOVL $12, DX
+ MOVL $0x2000004, AX
+ SYSCALL
+ MOVL $0, DI
+ MOVL $0x2000001, AX
+ SYSCALL
+ RET
+
+DATA hello<>+0(SB)/4, $"hell"
+DATA hello<>+4(SB)/4, $"o wo"
+DATA hello<>+8(SB)/4, $"rld\n"
+GLOBL hello<>(SB), $12