From owner-freebsd-current Thu May 9 10:19:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id A4BA937B40F for ; Thu, 9 May 2002 10:19:05 -0700 (PDT) Received: (qmail 24253 invoked from network); 9 May 2002 17:19:04 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 9 May 2002 17:19:04 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g49HJ3F38670; Thu, 9 May 2002 13:19:03 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020509101415.A12865@dragon.nuxi.com> Date: Thu, 09 May 2002 13:18:56 -0400 (EDT) From: John Baldwin To: "David O'Brien" Subject: RE: I need 96 bytes less of boot2, anyone want to hack? Cc: current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09-May-2002 David O'Brien wrote: > When building /sys/boot on i386 with Gcc 3.1, one gets "-96 bytes > available". Anyone want to install the gcc31 port, build /sys/boot with > "make CC=gcc31" and try to hack out 96 bytes? Argh! Can't we go one update of gcc w/o them adding some weird optimizations that bloat the code. :( *sigh* I'll try to look into this. > You will need this diff also. > > > Index: boot2/Makefile > =================================================================== > RCS file: /home/ncvs/src/sys/boot/i386/boot2/Makefile,v > retrieving revision 1.22 > diff -u -r1.22 Makefile > --- boot2/Makefile 31 Jul 2001 19:50:09 -0000 1.22 > +++ boot2/Makefile 8 May 2002 23:30:16 -0000 > @@ -27,10 +27,10 @@ > ORG1= 0x7c00 > ORG2= 0x1000 > > -CFLAGS= -elf -I${.CURDIR}/../btx/lib -I. \ > - -Os -fno-builtin -fforce-addr -fdata-sections \ > - -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd \ > - -mpreferred-stack-boundary=2 \ > +CFLAGS= -elf -ffreestanding -Os -fno-builtin -fforce-addr -fdata-sections \ > + -fno-align-functions -fno-align-jumps -fno-align-loops -fno-align-labels \ > + -mrtd -mpreferred-stack-boundary=2 \ > + -I${.CURDIR}/../btx/lib -I. \ > -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \ > -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ > -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message