From owner-freebsd-alpha Fri May 12 8:49:30 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id 3F67437B54E; Fri, 12 May 2000 08:49:25 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by relay.butya.kz with local-esmtp (Exim 3.13 #1) id 12qHgm-000H5Z-00; Fri, 12 May 2000 22:49:20 +0700 Date: Fri, 12 May 2000 22:49:20 +0700 (ALMST) From: Boris Popov To: John Baldwin Cc: "Daniel C. Sobral" , freebsd-alpha@FreeBSD.org, peter@FreeBSD.org Subject: Re: Loader fixed In-Reply-To: <200005121334.JAA10067@server.baldwin.cx> 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 Fri, 12 May 2000, John Baldwin wrote: > Here's a broken one: > > -r-xr-xr-x 1 root wheel 186648 May 11 11:48 /boot/loader.old > > If we do a little hex work: > > > printf "%x %x" 182680 186648 > 2c998 2d918 I have zero knowledge about Alpha architecture and may be completely wrong, but: Loader load address defined as: SECONDARY_LOAD_ADDRESS= 0x2000c000 # "Region 1 start" + 48k As I can see from sources, at the boot moment here is only one page of 256K dedicated to loader, so: 256*1024 - 0xc000 - 0x2d918 = 26344 A loader binary doesn't contain BSS segment which consists of stack (8KB) and uninitialized data. It is quite possible, that together with BSS data, total loader size exceeds 256k limit (and/or overlaps with heap which may explain mysterious zfree() error). -- Boris Popov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message