From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Move ELF program header
Date: Tue, 17 Jun 2008 13:18:00 -0400 [thread overview]
Message-ID: <1213723080.20084.6.camel@dv> (raw)
In-Reply-To: <ca0f59980806170902m212eedebv281ce25550990745@mail.gmail.com>
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
next prev parent reply other threads:[~2008-06-17 17:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-02 15:41 [PATCH] Move ELF program header Bean
2008-06-13 7:08 ` Bean
2008-06-14 11:37 ` Robert Millan
2008-06-14 16:31 ` Bean
2008-06-16 5:40 ` Pavel Roskin
2008-06-16 14:25 ` Bean
2008-06-16 14:33 ` Pavel Roskin
2008-06-17 14:21 ` Bean
2008-06-17 15:17 ` Robert Millan
2008-06-17 15:26 ` Bean
2008-06-17 15:32 ` Pavel Roskin
2008-06-17 15:34 ` Robert Millan
2008-06-17 15:37 ` Pavel Roskin
2008-06-17 15:47 ` Bean
2008-06-17 15:55 ` Pavel Roskin
2008-06-17 16:02 ` Bean
2008-06-17 17:18 ` Pavel Roskin [this message]
2008-06-17 17:24 ` Bean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1213723080.20084.6.camel@dv \
--to=proski@gnu.org \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.