mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 14:17:20 +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 : {
|
||||
_sinit = ABSOLUTE(.);
|
||||
*(.init_array .init_array.*)
|
||||
KEEP(*(.init_array .init_array.*))
|
||||
_einit = ABSOLUTE(.);
|
||||
} > flash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user