qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] ELF loader?


From: Peter Maydell
Subject: Re: [Qemu-devel] ELF loader?
Date: Mon, 8 Jun 2015 08:50:56 +0100

On 7 June 2015 at 17:03, Liviu Ionescu <address@hidden> wrote:
>
>> On 07 Jun 2015, at 13:46, Peter Maydell <address@hidden> wrote:
>> ... Some ELF files intended for embedded use have
>> a little self-initializing bit on the front that manually clears
>> their own .bss section, but that's not part of the ELF spec, and
>> QEMU will handle the other kind too.
>
> as I said, in the embedded world things are a bit different, there
> is no ELF loader, or you can consider the debugger as an ELF loader
> since it is reading the ELF file and programming the flash.
>
> but during this step it makes no sense to write/clear the RAM

That depends on what the ELF file is. If I were writing a debugger's
ELF loader code I would make it clear the bss area, because a
debugger is supposed to handle any ELF file you throw at it,
and following the ELF spec is trivial.

-- PMM



reply via email to

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