Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2002 16:08:10 -0800
From:      Peter Wemm <peter@wemm.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        "David O'Brien" <obrien@FreeBSD.org>, Poul-Henning Kamp <phk@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/boot/i386/boot2 Makefile boot1.s 
Message-ID:  <20021220000810.139972A7EA@canning.wemm.org>
In-Reply-To: <20021217071156.H17797-100000@gamplex.bde.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:
> On Mon, 16 Dec 2002, David O'Brien wrote:
> 
> > On Sun, Dec 15, 2002 at 08:31:45PM +1100, Bruce Evans wrote:
> > > Please remove the alignment hacks (Makefile rev.1.25) while you are there
    .
> > > Breakage of -[fm]align-* seems to have been fixed in gcc, so the hacks
> > > make no difference except to reduce the size of boot2.o's data by 3 bytes
> > > (I think the 3 bytes is wasted at link time).
> >
> > I'd rather leave them in to get the 3 bytes -- believe it or not it has
> > made a difference in the past.
> 
> It doesn't any difference because the 3 bytes is wasted at link time.
> The data section has size 29, but sections are padded to 4-byte boundaries,
> at least for ELF objects with the default linker scripts, so 29 becomes 32
> the same as if it had been padded internally for aligment.

In my case, it was a *final* object size difference of 3 bytes in /boot/
boot2.  I found that turning off the sed caused quite a bit of bloat, so
obviously we dont have all the necessary -[fm]align-*'s in the Makefile
that you have.

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 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?20021220000810.139972A7EA>