
15 Jun
2010
15 Jun
'10
10:54 p.m.
Dear Timur Tabi,
In message 4C17E4F2.70309@freescale.com 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: wd@denx.de
The use of anthropomorphic terminology when dealing with computing
systems is a symptom of professional immaturity. -- Edsger Dijkstra