Correction patch
[oweals/u-boot.git] / board / purple / u-boot.lds
index 750886545259c4ace1254e421bd394d4371250f7..e7ec012c3be5eb688dd6e3b47280ff6b3889f233 100644 (file)
@@ -29,13 +29,13 @@ OUTPUT_ARCH(mips)
 ENTRY(_start)
 SECTIONS
 {
-        . = 0x00000000;
+       . = 0x00000000;
 
-        . = ALIGN(4);
+       . = ALIGN(4);
        .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)
@@ -47,28 +47,33 @@ SECTIONS
          *(.text)
        }
 
-        . = ALIGN(4);
-        .rodata  : { *(.rodata) }
-
-        . = ALIGN(4);
-        .data  : { *(.data) }
+       . = ALIGN(4);
+       .rodata  : { *(.rodata) }
 
        . = ALIGN(4);
-       .sdata  : { *(.sdata) }
+       .data  : { *(.data) }
 
-       _gp = ALIGN(16);
+       . = .;
+       _gp = ALIGN(16) + 0x7ff0;
 
-       __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 = .;
+
        uboot_end_data = .;
        num_got_entries = (__got_end - __got_start) >> 2;
 
-        . = ALIGN(4);
+       . = ALIGN(4);
        .sbss  : { *(.sbss) }
-        .bss  : { *(.bss) }
+       .bss  : { *(.bss) }
        uboot_end = .;
 }