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

Timur Tabi timur at freescale.com
Tue Jun 15 22:39:14 CEST 2010


Wolfgang Denk wrote:
> I think the "timer" code is sufficient to show the problem, and that
> your fix helps.  If Timur confirms it's working for his secret code
> too we should apply this.

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.



More information about the U-Boot mailing list