Fix all linker script to handle all rodata sections
[oweals/u-boot.git] / cpu / mpc83xx / u-boot.lds
index 99ad6759d8aee458cf9fcb072a3831d3f81fc7b5..7d57ee4160084c66a0f89762ccfb1082826d7442 100644 (file)
@@ -55,10 +55,8 @@ SECTIONS
     *(.fixup)
     *(.got1)
     . = ALIGN(16);
-    *(.rodata)
-    *(.rodata1)
-    *(.rodata.str1.4)
     *(.eh_frame)
+    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
   }
   .fini      : { *(.fini)    } =0
   .ctors     : { *(.ctors)   }
@@ -116,6 +114,7 @@ SECTIONS
    *(.dynbss)
    *(.bss)
    *(COMMON)
+   . = ALIGN(4);
   }
   _end = . ;
   PROVIDE (end = .);