From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17798 invoked by alias); 3 Nov 2002 17:22:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 17599 invoked from network); 3 Nov 2002 17:22:06 -0000 Received: from unknown (HELO merlin.maxx.bg) (217.9.226.121) by sources.redhat.com with SMTP; 3 Nov 2002 17:22:06 -0000 Received: from merlin.maxx.bg (localhost [127.0.0.1]) by merlin.maxx.bg (Postfix) with SMTP id 57B22444; Sun, 3 Nov 2002 19:17:59 +0200 (EET) Date: Sun, 03 Nov 2002 09:22:00 -0000 From: Momchil Velikov To: Jason R Thorpe Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] [RFC] NetBSD note segment Message-Id: <20021103191759.4ed132b7.velco@fadata.bg> In-Reply-To: <20021103081029.P29066@dhcp7.wlan.shagadelic.org> References: <20021103131555.6658dbc6.velco@fadata.bg> <20021103081029.P29066@dhcp7.wlan.shagadelic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00121.txt.bz2 On Sun, 3 Nov 2002 08:10:29 -0800 Jason R Thorpe wrote: > On Sun, Nov 03, 2002 at 01:15:55PM +0200, Momchil Velikov wrote: > > > This is the first shot for generating NetBSD .note* section and the > > corresponding PT_NOTE segment. Without this segment NetBSD refuses > > to execute the file. > > This patch is not really correct. You mean the content of the section may change with new OS releases ? Like new version numbers, etc ? > The .note section in question > should be supplied by system files, not by a file shipped with the > compiler. Then it should be in crt0.o, not in files overriden by third party compilers. As far as I can understand crtbegin*.o is compiler's turf, no? > I am working on a comprehensive fix for this problem, but in the mean > time, you can run noteless binaries by enabling the EXEC_ELF_NOTELESS > option in your kernel. Thanks. ~velco