grub-devel
[Top][All Lists]
Advanced

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

[PATCH] fix load of RHEL ans SUSE images by correctly calculate ELF entr


From: Manoel Rebelo Abraches
Subject: [PATCH] fix load of RHEL ans SUSE images by correctly calculate ELF entry point
Date: Mon, 27 Sep 2010 04:29:32 -0300

This Patch loads kernel LOAD segment at the address fixed by PhysAddr
with alignment Align at the ELF program header. Even if this address is
in use other address with the same alignment is found "linuxadr" (since
linux can relocate itself). The linux main function is then find in the
adress linuxaddr + entry + (PhysAddr- Entry), where Entry is  the Entry
point address in the ELF header. (PhysAddr- Entry) gives the offset
where the linux entry point is located after linuxaddr.


-- 
Best Regards,

Manoel Rebelo Abranches
Software engineer
IBM - Linux Technology Center - Brazil

Attachment: elf.patch
Description: Text Data


reply via email to

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