mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
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:
@@ -92,7 +92,7 @@ SECTIONS
|
|||||||
*/
|
*/
|
||||||
.init_section : {
|
.init_section : {
|
||||||
_sinit = ABSOLUTE(.);
|
_sinit = ABSOLUTE(.);
|
||||||
*(.init_array .init_array.*)
|
KEEP(*(.init_array .init_array.*))
|
||||||
_einit = ABSOLUTE(.);
|
_einit = ABSOLUTE(.);
|
||||||
} > flash
|
} > flash
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user