]> git.sur5r.net Git - u-boot/blobdiff - nand_spl/board/amcc/kilauea/u-boot.lds
Fix all linker script to handle all rodata sections
[u-boot] / nand_spl / board / amcc / kilauea / u-boot.lds
index 24df32d02eeae1324af0d2103d452e5f58eb91b4..5a586fc7c8a66dfbb7a71f807fed3a36aa8935fc 100644 (file)
@@ -32,7 +32,6 @@ SECTIONS
   .text      :
   {
     start.o    (.text)
-    init.o     (.text)
     nand_boot.o        (.text)
     ndfc.o     (.text)
 
@@ -43,7 +42,7 @@ SECTIONS
 
   .data    :
   {
-    *(.rodata*)
+    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
     *(.data*)
     *(.sdata*)
     __got2_start = .;
@@ -54,10 +53,11 @@ SECTIONS
   _edata  =  .;
 
   __bss_start = .;
-  .bss       :
+  .bss (NOLOAD)       :
   {
    *(.sbss)
    *(.bss)
+   . = ALIGN(4);
   }
 
   _end = . ;