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

Re: putting yaboot and the bootinfo in one file



>Benjamin Herrenschmidt wrote:
>> Parsing ELF isn't that difficult, and we can eventually make
>> something slightly bastard: that is a bootinfo script with
>> an appended binary (and not ELF) image of yaboot that knows
>> where to load it. That would make it easier for the forth
>> code to free yaboot's memory if it wants to exit & then load
>> something else.
>
>Why would this make it easier?  The Forth code has to allocate
>that memory anyway, so let's just assume it won't be hard for it
>to free it, too ;)

Well, ELF means you may have to allocate scattered regions
(depends how your binary is linked). Putting some restrictions
on this is a way to make things simpler, that's all :)

Ben.