فهرست منبع

Correct relocation fixup for mpc5xx

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Grant Likely 18 سال پیش
والد
کامیت
3649cd99ba
3فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      cpu/mpc5xx/config.mk
  2. 0 1
      cpu/mpc5xx/u-boot.lds
  3. 1 0
      include/common.h

+ 1 - 1
cpu/mpc5xx/config.mk

@@ -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
 PLATFORM_CPPFLAGS +=	-DCONFIG_5xx -ffixed-r2 -ffixed-r29 -mpowerpc -msoft-float
 
 

+ 0 - 1
cpu/mpc5xx/u-boot.lds

@@ -59,7 +59,6 @@ SECTIONS
     cpu/mpc5xx/start.o	(.text)
     cpu/mpc5xx/start.o	(.text)
 
 
     *(.text)
     *(.text)
-    *(.fixup)
     *(.got1)
     *(.got1)
   }
   }
   _etext = .;
   _etext = .;

+ 1 - 0
include/common.h

@@ -63,6 +63,7 @@ typedef volatile unsigned char	vu_char;
 #endif
 #endif
 #elif defined(CONFIG_5xx)
 #elif defined(CONFIG_5xx)
 #include <asm/5xx_immap.h>
 #include <asm/5xx_immap.h>
+#define CONFIG_RELOC_FIXUP_WORKS
 #elif defined(CONFIG_MPC5xxx)
 #elif defined(CONFIG_MPC5xxx)
 #include <mpc5xxx.h>
 #include <mpc5xxx.h>
 #elif defined(CONFIG_MPC8220)
 #elif defined(CONFIG_MPC8220)