From owner-freebsd-current Thu May 9 10:46:10 2002 Delivered-To: freebsd-current@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 2C46737B406; Thu, 9 May 2002 10:46:07 -0700 (PDT) Received: from pool0470.cvx22-bradley.dialup.earthlink.net ([209.179.199.215] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 175rzR-00061W-00; Thu, 09 May 2002 10:46:06 -0700 Message-ID: <3CDAB5BF.73EF88FF@mindspring.com> Date: Thu, 09 May 2002 10:45:35 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: obrien@freebsd.org Cc: current@freebsd.org Subject: Re: I need 96 bytes less of boot2, anyone want to hack? References: <20020509101415.A12865@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 I had to recover about this amount, before. The way I ended up doing it was to hack all the strings shorter. Boots were ugly, but they worked. 8-(. -- Terry 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? > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message