Browse Source

+ Add .note.openbsd.ident section, contributed by Pascal Stumpf

git-svn-id: trunk@23685 -
pierre 12 years ago
parent
commit
90f4d8ddcd
4 changed files with 32 additions and 0 deletions
  1. 8 0
      rtl/openbsd/i386/cprt0.as
  2. 8 0
      rtl/openbsd/i386/prt0.as
  3. 8 0
      rtl/openbsd/x86_64/cprt0.as
  4. 8 0
      rtl/openbsd/x86_64/prt0.as

+ 8 - 0
rtl/openbsd/i386/cprt0.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"
 gcc2_compiled.:
 .data

+ 8 - 0
rtl/openbsd/i386/prt0.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"
 gcc2_compiled.:
 .data

+ 8 - 0
rtl/openbsd/x86_64/cprt0.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

@@ -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