Fix all linker script to handle all rodata sections
[oweals/u-boot.git] / board / mpl / vcma9 / u-boot.lds
index 76df6b2af1d39ec458525b35ebc7e8d83ef3ebf8..33363c26e4a2663154ddbb81de130b6f34509db3 100644 (file)
@@ -37,7 +37,7 @@ SECTIONS
        }
 
        . = ALIGN(4);
-       .rodata : { *(.rodata) }
+       .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
 
        . = ALIGN(4);
        .data : { *(.data) }
@@ -45,12 +45,13 @@ 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 = .;
 }