From 11a7a374a8d0f3aa531e7954c7883a5080429bc8 Mon Sep 17 00:00:00 2001 From: px4dev Date: Sat, 27 Oct 2012 21:48:09 -0700 Subject: [PATCH] Force the linker to keep all init functions. This might be going overboard, but without it we don't get any static constructors. --- nuttx/configs/px4fmu/common/ld.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuttx/configs/px4fmu/common/ld.script b/nuttx/configs/px4fmu/common/ld.script index 7f74776c06..de8179e8db 100644 --- a/nuttx/configs/px4fmu/common/ld.script +++ b/nuttx/configs/px4fmu/common/ld.script @@ -92,7 +92,7 @@ SECTIONS */ .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash