Fix all linker script to handle all rodata sections
[oweals/u-boot.git] / examples / nios2.lds
index 6a100dc2f74a21d33866611f9cc090b74f73b259..a3e5ea8e336ad9871a003c16f30b37deb7a0cb4b 100644 (file)
@@ -33,8 +33,7 @@ SECTIONS
          *(.text)
          *(.text.*)
          *(.gnu.linkonce.t*)
-         *(.rodata)
-         *(.rodata.*)
+         *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
          *(.gnu.linkonce.r*)
        }
        . = ALIGN (4);