From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lc3ot-0007lq-B6 for qemu-devel@nongnu.org; Tue, 24 Feb 2009 15:23:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lc3or-0007lI-UD for qemu-devel@nongnu.org; Tue, 24 Feb 2009 15:23:58 -0500 Received: from [199.232.76.173] (port=55576 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lc3or-0007lD-Qr for qemu-devel@nongnu.org; Tue, 24 Feb 2009 15:23:57 -0500 Received: from mail-fx0-f161.google.com ([209.85.220.161]:39134) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lc3or-0003K5-EO for qemu-devel@nongnu.org; Tue, 24 Feb 2009 15:23:57 -0500 Received: by fxm5 with SMTP id 5so3021242fxm.10 for ; Tue, 24 Feb 2009 12:23:55 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1235418752.28539.19.camel@slate.austin.ibm.com> References: <1235418752.28539.19.camel@slate.austin.ibm.com> Date: Tue, 24 Feb 2009 22:23:55 +0200 Message-ID: Subject: Re: [Qemu-devel] building openbios-qemu.elf? From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: openbios@openbios.org On 2/23/09, Hollis Blanchard wrote: > Hi, I just tried to build openbios-qemu.elf, but it is a little too big > (1MB + 4 bytes): > > Elf file type is EXEC (Executable file) > Entry point 0xfff08000 > There are 3 program headers, starting at offset 52 > > Program Headers: > Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align > LOAD 0x000094 0xfff00000 0xfff00000 0x100000 0x100000 RWE 0x4 > LOAD 0x100094 0xfffffffc 0xfffffffc 0x00004 0x00004 R E 0x1 > GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4 > > Section to Segment mapping: > Segment Sections... > 00 .text.vectors .text .rodata .data .sdata .bss .sbss > 01 .romentry > 02 > > In contrast, the openbios-ppc binary in qemu looks like this: > > Elf file type is EXEC (Executable file) > Entry point 0xfff08000 > There are 2 program headers, starting at offset 52 > > Program Headers: > Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align > LOAD 0x000074 0xfff00000 0xfff00000 0x41044 0x4bc44 RWE 0x4 > LOAD 0x0410b8 0xfffffffc 0xfffffffc 0x00004 0x00004 R E 0x1 > > Section to Segment mapping: > Segment Sections... > 00 .text.vectors .text .rodata .data .sdata .bss .sbss.1 .sbss.2 .sbss.3 .sbss.4 .sbss.5 .sbss.6 .sbss.7 .sbss.8 > 01 .romentry > > I'm building with gcc 4.2.3. Any ideas? The ldscript does not handle sdata and sbss.*?