From owner-freebsd-chat Tue Jan 2 22:51:45 2001 From owner-freebsd-chat@FreeBSD.ORG Tue Jan 2 22:51:41 2001 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id 6E3F237B402 for ; Tue, 2 Jan 2001 22:51:40 -0800 (PST) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer goliath.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.11.0/8.11.0) with ESMTP id f036pOH17231; Wed, 3 Jan 2001 07:51:24 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.11.0/8.11.0) with ESMTP id f036pN808936; Wed, 3 Jan 2001 07:51:23 +0100 (MET) Received: (from localhost) by curry.mchp.siemens.de (8.11.1/8.11.1) id f036pN611477; Date: Wed, 3 Jan 2001 07:51:23 +0100 From: Andre Albsmeier To: Greg Lehey Cc: Andre Albsmeier , Brett Glass , Doug White , "G. Adam Stanislav" , chat@FreeBSD.ORG Subject: Re: Removing GNU from kernel Message-ID: <20010103075123.A30917@curry.mchp.siemens.de> References: <20001231142437.A269@whizkidtech.net> <20010103110925.I40453@wantadilla.lemis.com> <20010103073029.B29371@curry.mchp.siemens.de> <20010103170935.S4336@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010103170935.S4336@wantadilla.lemis.com>; from grog@lemis.com on Wed, Jan 03, 2001 at 05:09:35PM +1030 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 03-Jan-2001 at 17:09:35 +1030, Greg Lehey wrote: > On Wednesday, 3 January 2001 at 7:30:29 +0100, Andre Albsmeier wrote: > > On Wed, 03-Jan-2001 at 11:09:25 +1030, Greg Lehey wrote: > >> On Tuesday, 2 January 2001 at 16:00:42 -0700, Brett Glass wrote: > >>> At 03:17 PM 1/2/2001, Doug White wrote: > >>> > >>>> ps/top/friends are probably busted now. > >>>> > >>>> You can't strip the symbols from the kernel or you get this. > >>> > >>> Ouch. Is it possible to leave just the necessary symbols? > >> > >> That's what we do. > > > > Apart from the "[ASM_FILE_END]GCC: (c) 2.95.2 19991024 (release)" > > stuff. They can be avoided by using -fno-ident during compilation > > time. > > Well, we don't have that explicit flag in the kernel compile, but > these idents no longer end up in the kernel. Hmm, I just compiled a kernel with COPTFLAGS= -O -m486 -pipe. root@bali:/usr/obj/src/src-4/sys/bali>strings -a kernel | grep ASM_FILE_END | wc 381 1905 18669 When adding -fno-ident to COPTFLAGS, these are gone. As I wrote in another mail, adding -fno-ident to CFLAGS in /etc/make.conf makes my /usr/obj shrink of about 7MB. All this is on 4.2-STABLE. Maybe -current behaves different... -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message