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

Timur Tabi timur at freescale.com
Tue Jun 15 21:05:16 CEST 2010


Timur Tabi wrote:
> Peter Tyser wrote:
>> Previously, standalone applications were compiled with gcc flags that 
>> produced relocatable executables on the PowerPC architecture (eg with the
>> -mrelocatable and -fPIC flags).  There's no reason for these applications
>> to be fully relocatable at this time since no relocation fixups are
>> performed on standalone applications.
> 
> This didn't work for me.  The entry point for my application in 401b4.

So if I comment-out the ifeq, like this:

#ifeq ($(ARCH),powerpc)
CFLAGS := $(filter-out $(RELFLAGS),$(CFLAGS))
#endif

and build, I get these errors:

powerpc-linux-gnu-ld: libstubs.a(ppc_longjmp.o): compiled with -mrelocatable
and linked with modules compiled normally
powerpc-linux-gnu-ld: failed to merge target specific data of file
libstubs.a(ppc_longjmp.o)
powerpc-linux-gnu-ld: libstubs.a(ppc_setjmp.o): compiled with -mrelocatable
and linked with modules compiled normally
powerpc-linux-gnu-ld: failed to merge target specific data of file
libstubs.a(ppc_setjmp.o)


More information about the U-Boot mailing list