[U-Boot] [PATCH] display the entry point when compiling a stand-alone program

Detlev Zundel dzu at denx.de
Fri Jun 11 16:46:45 CEST 2010


Hi Timur,

> Contrary to popular belief, the entry point for a stand-alone program is not
> consistent.  The only way to know for sure is to use the nm program and
> search for the entry point function.  So we update the Makefile build rule
> to display this entry point after the ELF image is created.
>
> Signed-off-by: Timur Tabi <timur at freescale.com>

I was thinking along the same lines but decided that this is not the
correct solution but only sweetening the fall ;)

We should concentrate on creating a correct linker script so that the
entry point ends up where we want it to be, namely at
STANDALONE_LOAD_ADDR.

Can you have a look at this and maybe solve the problem for good then?

Thanks!
  Detlev

-- 
Der erfahrene Politiker hantiert mit Werten wie mit Fahnen. Man tut so,
als ob klar sei,  was gerecht ist,  und unterstellt jedem,  der darüber
diskutieren will, er sei dagegen.        -- Norbert Bolz
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the U-Boot mailing list