$OpenBSD: patch-fpcsrc_rtl_openbsd_i386_cprt0_as,v 1.3 2016/01/04 11:40:41 pascal Exp $

Add .note.openbsd.ident section, needed to identify as OpenBSD executable.
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=23685

--- fpcsrc/rtl/openbsd/i386/cprt0.as.orig	Sun Mar  3 22:18:20 2013
+++ fpcsrc/rtl/openbsd/i386/cprt0.as	Sun Jan  3 13:57:58 2016
@@ -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
