Browse Source

* applied all the OpenBSD startup code patches from the OpenBSD ports tree

git-svn-id: trunk@41645 -
nickysn 6 years ago
parent
commit
85981b0a32

+ 9 - 1
rtl/openbsd/i386/cprt0.as

@@ -6,6 +6,14 @@
 	.ascii "OpenBSD\0"
 	.long	0
 	.previous
+	.section ".note.openbsd.ident", "a"
+	.p2align 2
+	.long	8
+	.long	4
+	.long	1
+	.ascii "OpenBSD\0"
+	.long	0
+	.previous
 	.file	"crt0.c"
 gcc2_compiled.:
 .data
@@ -108,7 +116,7 @@ ___start:
 	movb $0,(%edx)
 	movl $__progname_storage,__progname
 .L3:
-	call __init
+#	call __init
 	subl $16,%esp
 	pushl %eax
 	movl 8(%ebp),%eax

+ 8 - 0
rtl/openbsd/i386/prt0.as

@@ -6,6 +6,14 @@
 	.ascii "OpenBSD\0"
 	.long	0
 	.previous
+	.section ".note.openbsd.ident", "a"
+	.p2align 2
+	.long	8
+	.long	4
+	.long	1
+	.ascii "OpenBSD\0"
+	.long	0
+	.previous
 	.file	"crt0.c"
 gcc2_compiled.:
 .data

+ 8 - 0
rtl/openbsd/x86_64/cprt0.as

@@ -6,6 +6,14 @@
 	.ascii "OpenBSD\0"
 	.long	0
 	.previous
+	.section ".note.openbsd.ident", "a"
+	.p2align 2
+	.long	8
+	.long	4
+	.long	1
+	.ascii "OpenBSD\0"
+	.long	0
+	.previous
 	.file	"crt0.c"
 	.globl	__progname
 	.section	.rodata

+ 8 - 0
rtl/openbsd/x86_64/gprt0.as

@@ -1,3 +1,11 @@
+	.section ".note.openbsd.ident", "a"
+	.p2align 2
+	.long	8
+	.long	4
+	.long	1
+	.ascii "OpenBSD\0"
+	.long	0
+	.previous
 	.file	"crt0.c"
 	.globl	__progname
 	.section	.rodata

+ 8 - 0
rtl/openbsd/x86_64/prt0.as

@@ -6,6 +6,14 @@
 	.ascii "OpenBSD\0"
 	.long	0
 	.previous
+	.section ".note.openbsd.ident", "a"
+	.p2align 2
+	.long	8
+	.long	4
+	.long	1
+	.ascii "OpenBSD\0"
+	.long	0
+	.previous
 	.file	"crt0.c"
 	.globl	__progname
 	.section	.rodata