Add missing .note.netbsd.ident section

git-svn-id: trunk@20651 -
This commit is contained in:
pierre 2012-03-29 14:05:12 +00:00
parent 4f752004c3
commit 422c618109

View File

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