commit 06e10502ad1191381a674c2621738f38d7943c26
parent 2ebe4abf488d6041aa285d6a489528b7c1ca1a73
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 21 Mar 2017 12:02:50 +0100
[crt] Implement {amd64,qbe}-openbsd and add dummies
Diffstat:
9 files changed, 66 insertions(+), 8 deletions(-)
diff --git a/crt/amd64-linux/crt.s b/crt/amd64-linux/crt.s
@@ -1,8 +0,0 @@
- .file "crt.as"
- .text
- .global _start
-
-_start:
- call main
- movl %eax, %edi
- call exit
diff --git a/crt/amd64-sysv-linux/crt.s b/crt/amd64-sysv-linux/crt.s
@@ -0,0 +1,8 @@
+ .file "crt.s"
+
+ .text
+ .global _start
+_start:
+ call main
+ movl %eax, %edi
+ call exit
diff --git a/crt/amd64-sysv-openbsd/crt.s b/crt/amd64-sysv-openbsd/crt.s
@@ -0,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
diff --git a/crt/i386-sysv-linux/crt.s b/crt/i386-sysv-linux/crt.s
@@ -0,0 +1 @@
+/* TODO */
diff --git a/crt/i386-sysv-openbsd/crt.s b/crt/i386-sysv-openbsd/crt.s
@@ -0,0 +1 @@
+/* TODO */
diff --git a/crt/qbe-linux/crt.s b/crt/qbe-linux/crt.s
@@ -0,0 +1,8 @@
+ .file "crt.s"
+
+ .text
+ .global _start
+_start:
+ call main
+ movl %eax, %edi
+ call exit
diff --git a/crt/qbe-openbsd/crt.s b/crt/qbe-openbsd/crt.s
@@ -0,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
diff --git a/crt/z80-linux/crt.s b/crt/z80-linux/crt.s
@@ -0,0 +1 @@
+/* TODO */
diff --git a/crt/z80-openbsd/crt.s b/crt/z80-openbsd/crt.s
@@ -0,0 +1 @@
+/* TODO */