]> git.sur5r.net Git - u-boot/blobdiff - board/incaip/u-boot.lds
spl: Add support for common libraries and drivers
[u-boot] / board / incaip / u-boot.lds
index 9c71ef7e4b7582dbafee992df85561aa855e8254..4a59cea80f86aa0b7d1de31e28b7bf1cefd2939d 100644 (file)
@@ -24,7 +24,7 @@
 /*
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips")
 */
-OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradbigmips")
+OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
 OUTPUT_ARCH(mips)
 ENTRY(_start)
 SECTIONS
@@ -34,16 +34,17 @@ SECTIONS
        . = ALIGN(4);
        .text       :
        {
-         *(.text)
+         *(.text*)
        }
 
        . = ALIGN(4);
-       .rodata  : { *(.rodata) }
+       .rodata  : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
 
        . = ALIGN(4);
-       .data  : { *(.data) }
+       .data  : { *(.data*) }
 
-       _gp = ALIGN(16);
+       . = .;
+       _gp = ALIGN(16) + 0x7ff0;
 
        .got : {
          __got_start = .;
@@ -51,18 +52,19 @@ SECTIONS
          __got_end = .;
        }
 
-       .sdata  : { *(.sdata) }
+       .sdata  : { *(.sdata*) }
 
-       . = .;
-       __u_boot_cmd_start = .;
-       .u_boot_cmd : { *(.u_boot_cmd) }
-       __u_boot_cmd_end = .;
+       .u_boot_cmd : {
+         __u_boot_cmd_start = .;
+         *(.u_boot_cmd)
+         __u_boot_cmd_end = .;
+       }
 
        uboot_end_data = .;
        num_got_entries = (__got_end - __got_start) >> 2;
 
        . = ALIGN(4);
-       .sbss  : { *(.sbss) }
-       .bss  : { *(.bss) }
+       .sbss (NOLOAD)  : { *(.sbss*) }
+       .bss (NOLOAD)  : { *(.bss*) . = ALIGN(4); }
        uboot_end = .;
 }