Use the elf-parsing capabilities of LAR to parse the initram.o file,
and create a valid LAR header with an entry value. This will fix the problems Ron is having on the ALIX 1C and probably allow it to boot. It also sets the text base of the .o to 0, instead of whatever wacky value gld is choosing, so all platforms will have the same value. Get away from worrying about potential gld bugs, now and in the future. As added benefit, we obsolete a lot of code without introducing new code. Qemu target entry point debugging has been added to be able to spot problems with entry points in the future. This patch is a joint work of Ron and Carl-Daniel. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@523 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
d3a96b3f67
commit
7eb899b0bb
9 changed files with 35 additions and 34 deletions
|
|
@ -263,9 +263,9 @@ int run_file(struct mem_file *archive, const char *filename, void *where)
|
|||
filename);
|
||||
return 1;
|
||||
}
|
||||
where = result.start;
|
||||
where = result.start + (u32)result.entry;
|
||||
}
|
||||
printk(BIOS_SPEW, "where is %p\n", where);
|
||||
printk(BIOS_SPEW, "Entry point is %p\n", where);
|
||||
ret = run_address(where);
|
||||
printk(BIOS_SPEW, "run_file returns with %d\n", ret);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue