grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug-fix elf.c powerpc ieee1275


From: peter cros
Subject: Bug-fix elf.c powerpc ieee1275
Date: Mon, 29 Sep 2008 00:42:36 +1000

Hi,

There is a bug in /kern/elf.c/ (target powerpc, platform ieee1275),
causing load linux to fail on my powerpc64 g5 and ibook g4 32bit.

Here is a diff of the fix I found necessary for rev 1878 (bug has existed in previous versions).

It was a one liner -

diff -pu grubsvn/kern grubtry/kern/elf.c
---------------------------------------------
--- grubsvn/kern/elf.c    2008-09-28 17:27:56.000000000 +1000
+++ grubtry/kern/elf.c    2008-09-28 23:16:38.000000000 +1000
@@ -234,7 +234,7 @@ grub_elf32_load (grub_elf_t _elf, grub_e
 
     if (load_hook && load_hook (phdr, &load_addr))
       return 1;
-    load_addr = phdr->p_paddr;
+/** pxwdebug - not required -  load_addr = phdr->p_paddr; **/
 
     if (load_addr < load_base)
       load_base = load_addr;
@@ -413,8 +413,7 @@ grub_elf64_load (grub_elf_t _elf, grub_e
 
     if (load_hook && load_hook (phdr, &load_addr))
       return 1;
-    load_addr = phdr->p_paddr;
-
+/**pxwdebug - not required -     load_addr = phdr->p_paddr; **/
     if (load_addr < load_base)
       load_base = load_addr;
---------------------------------------------
pcros.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]