Dear Timur Tabi,

In message <[email protected]> you wrote:
> 
> Doing this at the top of my source file:
> 
>       static int __flash_wp(int argc, char *argv[]);
> 
>       int flash_wp(int argc, char *argv[])
>       {
>               return __flash_wp(argc, argv);
>       }
> 
> and then adding this line:
> 
>       CFLAGS += -fno-toplevel-reorder
> 
> was all I needed to get my entry point to appear at 40000 without needing to
> define any more forward references or caring about the order of the
> functions in the file.

I think the "static int __flash_wp()" thing is not even needed
assuming that flash_wp() is the first function in your file.

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: [email protected]
The use of anthropomorphic terminology when  dealing  with  computing
systems is a symptom of professional immaturity.   -- Edsger Dijkstra
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to