85xx: Fix relocation of CCSRBAR
[oweals/u-boot.git] / cpu / mpc85xx / config.mk
index c12e9230668fa16c3b1cbc72bc4387c4779f4a83..9e574a20d010ce010da1a767fe21c914d686e34c 100644 (file)
@@ -21,6 +21,8 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -mrelocatable -ffixed-r14 -meabi
+PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
 
-PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 -ffixed-r29 -Wa,-me500 -msoft-float
+PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 \
+                       -Wa,-me500 -msoft-float -mno-string
+PLATFORM_CPPFLAGS +=$(call cc-option,-mno-spe)