From owner-freebsd-alpha Mon Sep 18 2:10:50 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by hub.freebsd.org (Postfix) with ESMTP id 70EB937B422 for ; Mon, 18 Sep 2000 02:10:48 -0700 (PDT) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 13awwE-000GZz-0V; Mon, 18 Sep 2000 10:10:11 +0100 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id KAA37382; Mon, 18 Sep 2000 10:12:29 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Mon, 18 Sep 2000 10:10:14 +0100 (BST) From: Doug Rabson To: Matthew Jacob Cc: Peter Wemm , "Daniel C. Sobral" , alpha@freebsd.org Subject: Re: Loader badly broken on the alpha In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 17 Sep 2000, Matthew Jacob wrote: > > > > Matthew Jacob wrote: > > > > > > I think I had determined (I thought) that it was just loader itself, but I > > > could be wrong. > > > > The problem is that the loader is now too large, it cannot fit inside the > > ~208K window that boot1 has got available to it. > > > > peter@ashburton[12:14am]/home/obj/home/src/sys/boot/alpha/loader-130# nm loader.sym | sort | tail -1 > > 000000002003e190 A end > > > > The VM space ends at 2004000. I can't find where, but I was pretty sure that > > the last 8K page was already spoken for and we've clobbered it. > > > > Was the pnp stuff added to the Alpha loader images? That is what probably > > tipped it over the edge. > > I've been looking at this a little bit. The last last 8k may not be entirely > spoken for, because previous loader.sym's had: > > 000000002003d260 A _end > 000000002003d260 A end > > > But if it's 8k (and I don't know anything much about this really- I have never > delved to much into this portion of alphas) this may explain why the boot > stuff never did work right entirely for all models (e.g., off of floppy for a > rawhide). > > In any case, this one is a hard one. I was comparing object sizes between June > 23'd loader.sym and the current one on alpha, and there's no one single thing > that got all that much bigger! > > We need to pull out 3408 bytes- but it's not that simple- bcopy seems to take > 2544 bytes, which is ridiculously large for a boot block- so I replaced it > with a dopey one line C function but that didn't change _end for me, so I have > to look at the linker magic some I guess. Looking at sizes, supporting gzip'ed files is quite expensive - about 23k of code and data. Ficl is the real heavyweight with 50k in words.o alone. I just tried building everything with -Os but that was a waste of time - only 784 bytes difference. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8348 3944 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message