浏览代码

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
 

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

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

+ 1 - 0
include/common.h

@@ -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)