Subject: Re: kern/13615: NetBSD current requires a .note.netbsd.ident section
To: None <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 08/02/2001 14:53:31
On Wed, Aug 01, 2001 at 01:58:56PM -0700, email@example.com wrote:
> >Number: 13615
> >Category: kern
> >Synopsis: NetBSD current requires a .note.netbsd.ident section
> >Confidential: no
> >Severity: critical
> >Priority: high
> >Responsible: kern-bug-people
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Wed Aug 01 13:56:00 PDT 2001
> >Originator: Andrew cagney
> >Release: NetBSD 1.5.1 userland + NetBSD 2001-08-01(ish) kernel
> NetBSD localhost 1.5X NetBSD 1.5X (NETLUX) #0: Wed Aug 1 15:41:44 EDT 2001 boor@localhost:/usr/trunk/sys/arch/macppc/compile/NETLUX macppc
> /usr/lib/crtstart.o contains a .note.netbsd.ident section.
> NetBSD's bundled compiler links crtstart, crtend, crt0, ... into an executable.
> The kernel (current) refuses to run NetBSD executables unless: they contain the above .note section or the kernel is configured with ``options EXEC_ELF_CATCHALL''.
> Unfortunatly, unbundled complers (eg GCC>3.0) typically don't use system supplied files such as crtbegin.o - instead they supply their own. Consequently, an unbundled compiler won't include the crtbegin.o .note section and, in turn, won't be able to generate binaries that can be run on NetBSD-current.
IMHO, the compiler should be fixed to include the proper .note section
on NetBSD hosts.
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr