[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug-fix elf.c powerpc ieee1275
From: |
peter cros |
Subject: |
Re: Bug-fix elf.c powerpc ieee1275 |
Date: |
Tue, 30 Sep 2008 17:26:20 +1000 |
The change was between svn version 1421 and 1509 which had bugfixes,
in grub_elf32_load, and grub_elf64_load.
address@hidden:~/src/grub$ diff -pu grub1421/kern/elf.c grub1509/kern/elf.c
--- grub1421/kern/elf.c 2008-09-30 14:49:46.000000000 +1000
+++ grub1509/kern/elf.c 2008-09-30 14:41:31.000000000 +1000
@@ -228,9 +232,9 @@ grub_elf32_load (grub_elf_t _elf, grub_e
if (phdr->p_type != PT_LOAD)
return 0;
- load_addr = phdr->p_paddr;
if (load_hook && load_hook (phdr, &load_addr))
return 1;
+ load_addr = phdr->p_paddr;
if (load_addr < load_base)
load_base = load_addr;
@@ -407,9 +411,9 @@ grub_elf64_load (grub_elf_t _elf, grub_e
if (phdr->p_type != PT_LOAD)
return 0;
- load_addr = phdr->p_paddr;
if (load_hook && load_hook (phdr, &load_addr))
return 1;
+ load_addr = phdr->p_paddr;
if (load_addr < load_base)
load_base = load_addr;
------------------------------------