[U-Boot] [PATCH] cmd_elf: add an option for loading ELFs according to PHDRs

Wolfgang Denk wd at denx.de
Wed Oct 6 22:42:25 CEST 2010


Dear Mike Frysinger,

In message <1286048693-1773-1-git-send-email-vapier at gentoo.org> you wrote:
> The current ELF loading function does a lot of work above and beyond a
> simple "loading".  It ignores the real load addresses and loads things
> into their virtual (runtime) address.  This is undesirable when we just
> want it to load an ELF and let the ELF do the actual C runtime init.
> 
> So add a command line option to let people choose to load via either the
> program or section headers.  I'd prefer to have program header loading
> be the default, but this would break historical behavior, so I'll leave
> section header loading as the norm.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  common/cmd_elf.c |   62 ++++++++++++++++++++++++++++++++++++++++++++++-------
>  1 files changed, 53 insertions(+), 9 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When properly administered, vacations do not  diminish  productivity:
for every week you're away and get nothing done, there's another when
your boss is away and you get twice as much done.  -- Daniel B. Luten


More information about the U-Boot mailing list