Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 2003 10:30:59 -0800
From:      Peter Wemm <peter@wemm.org>
To:        jlouis@diku.dk
Cc:        current@freebsd.org
Subject:   Re: Problem in /usr/src/sys/boot/i386/boot2 
Message-ID:  <20030222183059.E230E2A8B4@canning.wemm.org>
In-Reply-To: <20030222161310.GA2928@diku.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help
jlouis@diku.dk wrote:
> Hello, I have a problem with -CURRENT. As I try to btxld:
> 
> /usr/src/sys/boot/i386/boot2
> 
> btxld -v -E 0x2000 -f bin -b
> /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr  -o
> boot2.ld -P 1 boot2.bin
> kernel: ver=1.01 size=780 load=9000 entry=9010 map=16M pgctl=1:1
> client: fmt=bin size=1691 text=0 data=0 bss=0 entry=0
> output: fmt=bin size=1f25 text=114 data=1e11 org=0 entry=0
> -293 bytes available
> *** Error code 1
> 
> Assumption: -293 bytes available is due to some sector mapping on the
> disk of some kind, where we need boot2 to fit into.

This is caused by Kirk Mckusick's recent commits to src/sys/ufs/ffs/fs.h
where he changed a couple of macros to do operations with 64 bit precision
instead of 32 bit like before (and that was a bug).  Unfortunately, gcc/i386
is really inefficient at doing 64 bit operations and this has blown boot2's
code size through the roof.

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030222183059.E230E2A8B4>