Fix all linker script to handle all rodata sections
[oweals/u-boot.git] / board / freescale / m547xevb / u-boot.lds
index cc7f3eba878a88527de586c6fbd709e4939495c6..a3014bd104f0912a3a0d980ff2791b6fc5a3185a 100644 (file)
@@ -61,7 +61,7 @@ SECTIONS
     common/dlmalloc.o          (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
-    common/environment.o       (.text)
+    common/env_embedded.o      (.text)
 
     *(.text)
     *(.fixup)
@@ -71,8 +71,7 @@ SECTIONS
   PROVIDE (etext = .);
   .rodata    :
   {
-    *(.rodata)
-    *(.rodata1)
+    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
   }
   .fini      : { *(.fini)    } =0
   .ctors     : { *(.ctors)   }