Explorar o código

Correct fixup relocation for mpc8220

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Grant Likely %!s(int64=18) %!d(string=hai) anos
pai
achega
a85dd254c0
Modificáronse 3 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      cpu/mpc8220/config.mk
  2. 0 1
      cpu/mpc8220/u-boot.lds
  3. 1 0
      include/common.h

+ 1 - 1
cpu/mpc8220/config.mk

@@ -21,7 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
+PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -mrelocatable
 
 PLATFORM_CPPFLAGS += -DCONFIG_MPC8220 -ffixed-r2 -ffixed-r29 \
 		     -mstring -mcpu=603e -mmultiple

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

@@ -55,7 +55,6 @@ SECTIONS
   {
     cpu/mpc8220/start.o	(.text)
     *(.text)
-    *(.fixup)
     *(.got1)
     . = ALIGN(16);
     *(.rodata)

+ 1 - 0
include/common.h

@@ -69,6 +69,7 @@ typedef volatile unsigned char	vu_char;
 #define CONFIG_RELOC_FIXUP_WORKS
 #elif defined(CONFIG_MPC8220)
 #include <asm/immap_8220.h>
+#define CONFIG_RELOC_FIXUP_WORKS
 #elif defined(CONFIG_8260)
 #if   defined(CONFIG_MPC8247) \
    || defined(CONFIG_MPC8248) \