Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2000 03:18:56 +0200 (SAST)
From:      Robert Nordier <rnordier@nordier.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Robert Nordier <rnordier@nordier.com>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, "Matthew N. Dodd" <mdodd@FreeBSD.org>, Doug Rabson <dfr@nlsystems.com>, Bruce Evans <bde@zeta.org.au>, mjacob@feral.com, Peter Wemm <peter@netplex.com.au>
Subject:   Re: cvs commit: src/sys/kern subr_bus.c
Message-ID:  <200009200118.DAA11525@c3-dbn-96.dial-up.net>
In-Reply-To: <XFMail.000919175331.jhb@FreeBSD.org> "from John Baldwin at Sep 19, 2000 05:53:31 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
 
> On 20-Sep-00 Robert Nordier wrote:
> > Peter Wemm wrote:
> > 
> >> Matthew Jacob wrote:
> >> > 
> >> > I'll second this.
> >> 
> >> Well, on the x86 we clear it twice, once in loader and once in locore.  I
> >> thought it was redundant on the x86 since I thought the new boot2 cleared
> >> the extended ELF segment sizes.  We do not support a.out kernels anymore
> >> so the old bootblocks are not an issue.  (the old gas-1.9x cannot assemble
> >> the .s files).
> >> 
> >> IMHO we should fix this bug in boot2.  It costs ~32 bytes.  (ie: reduces
> >> from 212 bytes free to 180 bytes free).
> >  
> > If the bss clearing code is actually to be dropped from the x86
> > kernel, I'd be happy for this to change.  Otherwise 15% of available
> > space is a lot to spend for no actual benefit beyond a kind of
> > theoretical tidiness.
> 
> Well, the loader needs its BSS cleared as well, so boot2 can't drop its
> BSS clearing code, AFAIK.

The issue was adding bss clearing code to boot2, not removing it.

>                            Esp. if the loader switches to being an ELF
> binary, which it might in 5.0 current if some people have their way.
 
The loader is already an ELF binary and already gets its bss cleared
(by btxldr).  The btxld composite object is presently a.out, but
changing this to elf won't affect bss as btxld doesn't use bss.

--
Robert Nordier

rnordier@nordier.com
rnordier@FreeBSD.org


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




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