[U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC

Wolfgang Denk wd at denx.de
Tue Jun 15 22:54:23 CEST 2010


Dear Timur Tabi,

In message <4C17E4F2.70309 at 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 at denx.de
The use of anthropomorphic terminology when  dealing  with  computing
systems is a symptom of professional immaturity.   -- Edsger Dijkstra


More information about the U-Boot mailing list