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

Timur Tabi timur at freescale.com
Wed Jun 16 16:02:53 CEST 2010


On Tue, Jun 15, 2010 at 10:37 PM, Peter Tyser <ptyser at xes-inc.com> wrote:

> It looks like the -fno-toplevel-reorder flag is only available in gcc >=
> 4.2 (http://gcc.gnu.org/gcc-4.2/changes.html released May 2007).  So, do
> we add support to U-Boot to conditionally check for the gcc version like
> Linux to know when to use -fno-toplevel-reorder?  Or do we use a linker
> script that would support more versions of gcc at the cost of more
> complexity?

What happens if you use the flag on earlier versions of gcc?  If the
flag is just silently ignored, then maybe it's not such a big deal to
always include it, and just add a comment saying that it only works on
gcc 4.2 or higher?

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list