Fix all linker script to handle all rodata sections
[oweals/u-boot.git] / board / freescale / m5249evb / u-boot.lds
index afdb7202ca86cd9af7a5154e7acc39d6624b6fff..e3230b9f20a935d8553d38d5745e6dbb74c849fc 100644 (file)
@@ -62,7 +62,7 @@ SECTIONS
     lib_generic/zlib.o         (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
-    common/environment.o       (.text)
+    common/env_embedded.o      (.text)
 
     *(.text)
     *(.fixup)
@@ -72,10 +72,8 @@ SECTIONS
   PROVIDE (etext = .);
   .rodata    :
   {
-    *(.rodata)
-    *(.rodata1)
-    *(.rodata.str1.4)
     *(.eh_frame)
+    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
   }
   .fini      : { *(.fini)    } =0
   .ctors     : { *(.ctors)   }