From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HdCyV-0005gM-R6 for qemu-devel@nongnu.org; Sun, 15 Apr 2007 18:13:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HdCyT-0005g4-QS for qemu-devel@nongnu.org; Sun, 15 Apr 2007 18:13:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HdCyT-0005g1-LF for qemu-devel@nongnu.org; Sun, 15 Apr 2007 18:13:33 -0400 Received: from return.false.org ([66.207.162.98]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HdCtv-0000AE-IE for qemu-devel@nongnu.org; Sun, 15 Apr 2007 18:08:51 -0400 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 0F8D84B267 for ; Sun, 15 Apr 2007 17:08:48 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id EE80E4B262 for ; Sun, 15 Apr 2007 17:08:47 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HdCtq-000416-S7 for qemu-devel@nongnu.org; Sun, 15 Apr 2007 18:08:46 -0400 Date: Sun, 15 Apr 2007 18:08:46 -0400 From: Daniel Jacobowitz Subject: Re: [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s... Message-ID: <20070415220846.GA15315@caradoc.them.org> References: <200704152001.35967.paul@codesourcery.com> <200704152020.17217.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Sun, Apr 15, 2007 at 10:37:08PM +0300, Blue Swirl wrote: > On 4/15/07, Paul Brook wrote: > > 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. > > Nice theory (and I missed the modulo arithmetic, sorry), but on > Ultrasparc the page sizes available are 8k, 64k, 4M and 256M. #define ELF_MAXPAGESIZE 0x100000 BFD and GNU ld think it's 1MB. -- Daniel Jacobowitz CodeSourcery