]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/modnet50/u-boot.lds
Fix all linker script to handle all rodata sections
[karo-tx-uboot.git] / board / modnet50 / u-boot.lds
index 98997904d480b6e1e10756a43788e7b0cf734476..b72e12686b5ac779ea0c8fbaa7f75197f04703c0 100644 (file)
@@ -36,7 +36,7 @@ SECTIONS
        }
 
        . = ALIGN(4);
-       .rodata : { *(.rodata) }
+       .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
 
        . = ALIGN(4);
        .data : { *(.data) }
@@ -44,13 +44,14 @@ SECTIONS
        . = ALIGN(4);
        .got : { *(.got) }
 
+       . = .;
        __u_boot_cmd_start = .;
        .u_boot_cmd : { *(.u_boot_cmd) }
        __u_boot_cmd_end = .;
 
        . = ALIGN(4);
        __bss_start = .;
-       .bss : { *(.bss) }
+       .bss (NOLOAD) : { *(.bss) . = ALIGN(4); }
        _end = .;
                                  /* Stabs debugging sections.    */
        .stab 0 : { *(.stab) }