Force the linker to keep all init functions. This might be going overboard, but without it we don't get any static constructors.

This commit is contained in:
px4dev
2012-10-27 21:48:09 -07:00
parent f04c522f4f
commit 11a7a374a8
+1 -1
View File
@@ -92,7 +92,7 @@ SECTIONS
*/
.init_section : {
_sinit = ABSOLUTE(.);
*(.init_array .init_array.*)
KEEP(*(.init_array .init_array.*))
_einit = ABSOLUTE(.);
} > flash