From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HdALO-0007YS-P3 for qemu-devel@nongnu.org; Sun, 15 Apr 2007 15:25:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HdALO-0007Xa-5H for qemu-devel@nongnu.org; Sun, 15 Apr 2007 15:25:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HdALO-0007XV-1t for qemu-devel@nongnu.org; Sun, 15 Apr 2007 15:25:02 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HdAGq-0003DP-MT for qemu-devel@nongnu.org; Sun, 15 Apr 2007 15:20:20 -0400 From: Paul Brook Subject: Re: [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s... Date: Sun, 15 Apr 2007 20:20:16 +0100 References: <200704152001.35967.paul@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704152020.17217.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl On Sunday 15 April 2007 20:11, Blue Swirl wrote: > > Probably the linker is making sure the file offset and VMA are the same > > modulo the page size. > > But that would be one huge file, as the VMA is near 2TB: I said *modulo the pace size* :-) Lets say ld thinks the page size for your system is 1Mb (nor an unreasonable assumption). The vma of .text is aligned on a 1Mb boundary. In order to allow loading via mmap, the location of .text within the file must also be aligned on a 1Mb boundary. It can't put it at address zero because the ELF headers get in the way, so the first viable location is 1Mb into the file. Paul