]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/scripttempl/ft32.sc
Add SORT_NONE to .init and .fini in scripts
[thirdparty/binutils-gdb.git] / ld / scripttempl / ft32.sc
index 2d7d64769437840bca4bbcf082d72664ce1a55e6..ef7f332aa504382111cea22e17e335a01e57c351 100644 (file)
@@ -35,8 +35,8 @@ SECTIONS
     *(.text${RELOCATING+*})
     ${RELOCATING+*(.strings)
     *(._pm*)
-    *(.init)
-    *(.fini)
+    KEEP (*(SORT_NONE(.init)))
+    KEEP (*(SORT_NONE(.fini)))
     _etext = .;
     . = ALIGN(4);}
   } ${RELOCATING+ > flash}