فهرست منبع

Add missing .note.netbsd.ident section

git-svn-id: trunk@20651 -
pierre 13 سال پیش
والد
کامیت
422c618109
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      rtl/netbsd/i386/cprt0.as

+ 12 - 0
rtl/netbsd/i386/cprt0.as

@@ -329,6 +329,18 @@ _rtld_setup:
         .comm operatingsystem_parameter_argc,4,4
         .comm operatingsystem_parameter_argv,4,4
 	.weak	_DYNAMIC
+# This section is needed for NetBSD to recognize a NetBSD binary as such.
+# otherwise it will be startup in Linux emulation mode.
+
+.section ".note.netbsd.ident","a"
+.p2align 2
+
+.long 7
+.long 4
+# ELF NOTE TYPE NETBSD TAG
+.long 1
+.ascii "NetBSD\0\0"
+.long 199905
 	.section	.debug_frame,"",@progbits
 .Lframe0:
 	.long	.LECIE0-.LSCIE0