[LinuxBIOS] [PATCH] v3: convert stage2 to multi-segment LAR

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Tue Nov 27 17:46:28 CET 2007

On 27.11.2007 10:33, Stefan Reinauer wrote:
> * Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> [071127 03:55]:
>> Convert stage2 handling from binary blob to multi-segment LAR which is
>> created by parsing the ELF file linuxbios.stage2.o. That way, we avoid
>> manual specification of the entry point for stage2 code. A few LAR
>> functions are now unused and can be removed in a following cleanup session.
>> Another suggested cleanup would be factoring out a load_all_segments
>> function, resulting in less code duplication.
> I can't believe this is the workaround for not being able to put a 
> "jmp _entry" in front of the code.

It is certainly easier to understand than a linker script which tries to
move a "jmp _entry" to the front of the blob.

> It might be becoming just another "how do we explain _that_ to people
> now?" just like the v2 device tree.

See Ron's mail about that subject. He put it in a very elaborate way.


More information about the coreboot mailing list