From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbzqT-00088X-05 for qemu-devel@nongnu.org; Tue, 24 Feb 2009 11:09:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbzqR-00088E-AC for qemu-devel@nongnu.org; Tue, 24 Feb 2009 11:09:20 -0500 Received: from [199.232.76.173] (port=49506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbzqR-00088B-52 for qemu-devel@nongnu.org; Tue, 24 Feb 2009 11:09:19 -0500 Received: from e8.ny.us.ibm.com ([32.97.182.138]:41536) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbzqQ-0004zw-Nl for qemu-devel@nongnu.org; Tue, 24 Feb 2009 11:09:18 -0500 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e8.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n1OG1vK5021033 for ; Tue, 24 Feb 2009 11:01:57 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n1OG9CiJ196570 for ; Tue, 24 Feb 2009 11:09:12 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n1OG9CB0004474 for ; Tue, 24 Feb 2009 11:09:12 -0500 Subject: Re: [Qemu-devel] Re: [OpenBIOS] building openbios-qemu.elf? From: Hollis Blanchard In-Reply-To: References: <1235418752.28539.19.camel@slate.austin.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 24 Feb 2009 10:09:11 -0600 Message-Id: <1235491751.6429.47.camel@slate.austin.ibm.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: The OpenBIOS Mailinglist On Tue, 2009-02-24 at 00:07 +0100, Laurent Vivier wrote: > Hi, >=20 > Do you use source from SVN head ? Yes. > Do you have any information in obj-ppc/build.log ? This is somewhat interesting: powerpc-440-linux-gnu-strip openbios-qemu.elf BFD: st4PszLi: warning: allocated section `.bss' not in segment BFD: st4PszLi: warning: allocated section `.sbss' not in segment The "nostrip" version of openbios-qemu.elf looks much better: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000094 0xfff00000 0xfff00000 0x42044 0x4bcb4 RWE 0x4 LOAD 0x0420d8 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=20 01 .romentry=20 02 =20 So something goes wrong in the strip process. --=20 Hollis Blanchard IBM Linux Technology Center > I use gcc-4.3.2 on my powerPC G4, powerpc-linux-gnu-gcc-4.2.4 on intel = =20 > T5500 and size is fine. >=20 > Regards, > Laurent >=20 > Le 23 f=C3=A9vr. 09 =C3=A0 20:52, Hollis Blanchard a =C3=A9crit : >=20 > > Hi, I just tried to build openbios-qemu.elf, but it is a little too =20 > > 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 =20 > > Align > > LOAD 0x000094 0xfff00000 0xfff00000 0x100000 0x100000 RWE = =20 > > 0x4 > > LOAD 0x100094 0xfffffffc 0xfffffffc 0x00004 0x00004 R E 0x= 1 > > GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x= 4 > > > > 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 =20 > > Align > > LOAD 0x000074 0xfff00000 0xfff00000 0x41044 0x4bc44 RWE 0x= 4 > > LOAD 0x0410b8 0xfffffffc 0xfffffffc 0x00004 0x00004 R E 0x= 1 > > > > Section to Segment mapping: > > Segment Sections... > > 00 .text.vectors .text .rodata .data .sdata .bss .sbss.1 .sbss.= =20 > > 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? > > > > --=20 > > Hollis Blanchard > > IBM Linux Technology Center > > > > > > -- > > OpenBIOS http://openbios.org/ > > Mailinglist: http://lists.openbios.org/mailman/listinfo > > Free your System - May the Forth be with you >=20 >=20