From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K8eop-00070x-Tf for mharc-grub-devel@gnu.org; Tue, 17 Jun 2008 13:18:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8eoo-00070q-0u for grub-devel@gnu.org; Tue, 17 Jun 2008 13:18:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8eol-00070e-Hl for grub-devel@gnu.org; Tue, 17 Jun 2008 13:18:04 -0400 Received: from [199.232.76.173] (port=45106 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8eol-00070b-ED for grub-devel@gnu.org; Tue, 17 Jun 2008 13:18:03 -0400 Received: from c60.cesmail.net ([216.154.195.49]:2419) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1K8eol-0002D7-Bk for grub-devel@gnu.org; Tue, 17 Jun 2008 13:18:03 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 17 Jun 2008 13:18:01 -0400 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id C360A619058 for ; Tue, 17 Jun 2008 13:18:01 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: References: <1213594807.5323.8.camel@dv> <20080616103345.z8afx71pssscs4oo-cebfxv@webmail.spamcop.net> <20080617151708.GA7284@thorin> <1213716735.11567.6.camel@dv> <1213718105.11567.26.camel@dv> Content-Type: text/plain Date: Tue, 17 Jun 2008 13:18:00 -0400 Message-Id: <1213723080.20084.6.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 (2.22.2-2.fc9) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Move ELF program header X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 17:18:06 -0000 On Wed, 2008-06-18 at 00:02 +0800, Bean wrote: > >> Are you using the native compiler, or cross compile from i386 ? It > >> could have some effect. > > > > I'm compiling natively on PowerPC. > > It could be an endian problem. Check the elf header, see if the fields are ok. That's the headers, I don't see anything wrong. The sections are missing, but it has always been like that. The version is current from CVS. $ ./grub-mkimage -o grub.img -d . *.mod $ objdump -x grub.img grub.img: file format elf32-powerpc grub.img architecture: powerpc:common, flags 0x00000102: EXEC_P, D_PAGED start address 0x00010000 Program Header: LOAD off 0x000000c0 vaddr 0x00010000 paddr 0x00010000 align 2**4 filesz 0x0000bf04 memsz 0x000133a8 flags rwx LOAD off 0x0000bfc4 vaddr 0x100000b4 paddr 0x100000b4 align 2**2 filesz 0x00000024 memsz 0x00000024 flags r-- NOTE off 0x0000bfc4 vaddr 0x100000b4 paddr 0x100000b4 align 2**2 filesz 0x00000024 memsz 0x00000024 flags r-- STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2 filesz 0x00000000 memsz 0x00000000 flags rwx LOAD off 0x0000bfe8 vaddr 0x10009000 paddr 0x10009000 align 2**2 filesz 0x00052104 memsz 0x00052104 flags rwx Sections: Idx Name Size VMA LMA File off Algn SYMBOL TABLE: no symbols The image loads, complains about "cursor-on", shows "Welcome to GRUB" and the prompt. "lsmod" shows an empty list. -- Regards, Pavel Roskin