Correction patch
[oweals/u-boot.git] / board / purple / u-boot.lds
index 270fbe8afca116a90c680734b70cfdd18b028da4..e7ec012c3be5eb688dd6e3b47280ff6b3889f233 100644 (file)
@@ -35,7 +35,7 @@ SECTIONS
        .text       :
        {
          cpu/mips/start.o              (.text)
-         board/purple/memsetup.o       (.text)
+         board/purple/lowlevel_init.o  (.text)
          cpu/mips/cache.o              (.text)
          common/main.o                 (.text)
          common/dlmalloc.o             (.text)
@@ -53,20 +53,21 @@ SECTIONS
        . = ALIGN(4);
        .data  : { *(.data) }
 
-       . = ALIGN(4);
-       .sdata  : { *(.sdata) }
+       . = .;
+       _gp = ALIGN(16) + 0x7ff0;
 
-       _gp = ALIGN(16);
-
-       __got_start = .;
-       .got  : { *(.got) }
-       __got_end = .;
+       .got : {
+         __got_start = .;
+         *(.got)
+         __got_end = .;
+       }
 
        .sdata  : { *(.sdata) }
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
+       . = .;
+       __u_boot_cmd_start = .;
+       .u_boot_cmd : { *(.u_boot_cmd) }
+       __u_boot_cmd_end = .;
 
        uboot_end_data = .;
        num_got_entries = (__got_end - __got_start) >> 2;