]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/sixnet/u-boot.lds
Fix all linker script to handle all rodata sections
[karo-tx-uboot.git] / board / sixnet / u-boot.lds
index b91c44a57d2906176a5762c2c9ddf51bae83cbc1..bde981b389903bfbe832c7d1a20e1f70b4e6fdbb 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
   .text      :
   {
     cpu/mpc8xx/start.o (.text)
-    common/environment.o(.text)
+    common/env_embedded.o(.text)
     *(.text)
     *(.fixup)
     *(.got1)
@@ -62,10 +62,8 @@ SECTIONS
   PROVIDE (etext = .);
   .rodata    :
   {
-    *(.rodata)
-    *(.rodata1)
-    *(.rodata.str1.4)
     *(.eh_frame)
+    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
   }
   .fini      : { *(.fini)    } =0
   .ctors     : { *(.ctors)   }
@@ -123,6 +121,7 @@ SECTIONS
    *(.dynbss)
    *(.bss)
    *(COMMON)
+   . = ALIGN(4);
   }
   _end = . ;
   PROVIDE (end = .);