[U-Boot] [PATCH] examples/standalone: Use gcc's -fno-toplevel-reorder

Detlev Zundel dzu at denx.de
Thu Sep 16 13:49:12 CEST 2010


Hi Peter,

> I agree we should be using main() as the entry point either way.  I'll
> add that to the TODO list.  If we did go with -fno-toplevel-reorder I
> could add the following to each application to make it clear what's
> going on:
> /* Define main() protoype first to ensure its the first function in the image */

     when linked with -fno-toplevel-reorder

> int main(int argc, char * const argv[]);

This would be appreciated.

Cheers
  Detlev

-- 
SWYM XYZ (Sympathize with your machinery).  [..] In fact it is often
called a no-op, because it performs no operation.  It does, however,
keep the machine running smoothly, just as real-world swimming helps
to keep programmers healthy.             -- Donald Knuth, Fascicle 1
--
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