From owner-freebsd-current Thu May 9 10:14:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 5703D37B407 for ; Thu, 9 May 2002 10:14:16 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g49HEGev012881 for ; Thu, 9 May 2002 10:14:16 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g49HEGC9012880 for current@freebsd.org; Thu, 9 May 2002 10:14:16 -0700 (PDT) Date: Thu, 9 May 2002 10:14:15 -0700 From: "David O'Brien" To: current@freebsd.org Subject: I need 96 bytes less of boot2, anyone want to hack? Message-ID: <20020509101415.A12865@dragon.nuxi.com> Reply-To: obrien@freebsd.org Mail-Followup-To: David O'Brien , current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 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 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