Correct relocation fixup for mpc5xx
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 3 Jul 2007 06:34:24 +0000 (00:34 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 3 Jul 2007 23:07:28 +0000 (01:07 +0200)
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
cpu/mpc5xx/config.mk
cpu/mpc5xx/u-boot.lds
include/common.h

index 64cd600..e95b8a1 100644 (file)
@@ -28,7 +28,7 @@
 #
 
 
-PLATFORM_RELFLAGS +=   -fPIC -ffixed-r14 -meabi
+PLATFORM_RELFLAGS +=   -fPIC -ffixed-r14 -meabi -mrelocatable
 
 PLATFORM_CPPFLAGS +=   -DCONFIG_5xx -ffixed-r2 -ffixed-r29 -mpowerpc -msoft-float
 
index 5b03fef..10001b1 100644 (file)
@@ -59,7 +59,6 @@ SECTIONS
     cpu/mpc5xx/start.o (.text)
 
     *(.text)
-    *(.fixup)
     *(.got1)
   }
   _etext = .;
index d8b6b46..7319c54 100644 (file)
@@ -63,6 +63,7 @@ typedef volatile unsigned char        vu_char;
 #endif
 #elif defined(CONFIG_5xx)
 #include <asm/5xx_immap.h>
+#define CONFIG_RELOC_FIXUP_WORKS
 #elif defined(CONFIG_MPC5xxx)
 #include <mpc5xxx.h>
 #elif defined(CONFIG_MPC8220)