Fix PX4IO to run C++ static ctors

This commit is contained in:
px4dev
2012-12-29 12:57:29 -08:00
parent 35c82ff2fc
commit d5da457e29
3 changed files with 15 additions and 1 deletions
+9
View File
@@ -74,6 +74,15 @@ SECTIONS
_etext = ABSOLUTE(.);
} > flash
/*
* Init functions (static constructors and the like)
*/
.init_section : {
_sinit = ABSOLUTE(.);
KEEP(*(.init_array .init_array.*))
_einit = ABSOLUTE(.);
} > flash
.ARM.extab : {
*(.ARM.extab*)
} > flash