Fix all linker script to handle all rodata sections
[oweals/u-boot.git] / examples / nios2.lds
index 277a0a7a673c367d29be5c1c8d5e9408b58ad03d..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);
@@ -74,7 +73,7 @@ SECTIONS
         * bss follows. We keep it adjacent to simplify init code.
         */
        __bss_start = .;
-       .sbss :
+       .sbss (NOLOAD) :
        {
          *(.sbss)
          *(.sbss.*)
@@ -82,7 +81,7 @@ SECTIONS
          *(.scommon)
        }
        . = ALIGN(4);
-       .bss :
+       .bss (NOLOAD) :
        {
          *(.bss)
          *(.bss.*)