shithub: scc

Download patch

ref: ce27aafc50fc22d1040d550a4105b53cf35d1bf2
parent: 645e9c390a67978953f8067e46d03d4e25c8453e
author: Quentin Rameau <quinq@fifth.space>
date: Tue Mar 21 08:02:50 EDT 2017

[crt] Implement {amd64,qbe}-openbsd and add dummies

diff: cannot open a/crt/amd64-linux//null: file does not exist: 'a/crt/amd64-linux//null' diff: cannot open b/crt/amd64-sysv-linux//null: file does not exist: 'b/crt/amd64-sysv-linux//null' diff: cannot open b/crt/amd64-sysv-openbsd//null: file does not exist: 'b/crt/amd64-sysv-openbsd//null' diff: cannot open b/crt/i386-sysv-linux//null: file does not exist: 'b/crt/i386-sysv-linux//null' diff: cannot open b/crt/i386-sysv-openbsd//null: file does not exist: 'b/crt/i386-sysv-openbsd//null' diff: cannot open b/crt/qbe-linux//null: file does not exist: 'b/crt/qbe-linux//null' diff: cannot open b/crt/qbe-openbsd//null: file does not exist: 'b/crt/qbe-openbsd//null' diff: cannot open b/crt/z80-linux//null: file does not exist: 'b/crt/z80-linux//null' diff: cannot open b/crt/z80-openbsd//null: file does not exist: 'b/crt/z80-openbsd//null'
--- a/crt/amd64-linux/crt.s
+++ /dev/null
@@ -1,8 +1,0 @@
-	.file	"crt.as"
-	.text
-	.global	_start
-
-_start:
-	call	main
-	movl    %eax, %edi
-	call	exit
--- /dev/null
+++ b/crt/amd64-sysv-linux/crt.s
@@ -1,0 +1,8 @@
+	.file	"crt.s"
+
+	.text
+	.global	_start
+_start:
+	call	main
+	movl    %eax, %edi
+	call	exit
--- /dev/null
+++ b/crt/amd64-sysv-openbsd/crt.s
@@ -1,0 +1,23 @@
+	.file	"crt.s"
+
+	.section ".note.openbsd.ident", "a"
+	.p2align 2
+	.long	8
+	.long	4
+	.long	1
+	.ascii	"OpenBSD\0"
+	.long	0
+	.p2align 2
+
+	.text
+	.align	8
+	.global	_start
+_start:
+	call	main
+	movl    %eax, %edi
+	call	exit
+
+	.data
+	.global	__guard_local
+__guard_local:
+	.long	0
--- /dev/null
+++ b/crt/i386-sysv-linux/crt.s
@@ -1,0 +1,1 @@
+/* TODO */
--- /dev/null
+++ b/crt/i386-sysv-openbsd/crt.s
@@ -1,0 +1,1 @@
+/* TODO */
--- /dev/null
+++ b/crt/qbe-linux/crt.s
@@ -1,0 +1,8 @@
+	.file	"crt.s"
+
+	.text
+	.global	_start
+_start:
+	call	main
+	movl    %eax, %edi
+	call	exit
--- /dev/null
+++ b/crt/qbe-openbsd/crt.s
@@ -1,0 +1,23 @@
+	.file	"crt.s"
+
+	.section ".note.openbsd.ident", "a"
+	.p2align 2
+	.long	8
+	.long	4
+	.long	1
+	.ascii	"OpenBSD\0"
+	.long	0
+	.p2align 2
+
+	.text
+	.align	8
+	.global	_start
+_start:
+	call	main
+	movl    %eax, %edi
+	call	exit
+
+	.data
+	.global	__guard_local
+__guard_local:
+	.long	0
--- /dev/null
+++ b/crt/z80-linux/crt.s
@@ -1,0 +1,1 @@
+/* TODO */
--- /dev/null
+++ b/crt/z80-openbsd/crt.s
@@ -1,0 +1,1 @@
+/* TODO */