From 0678add062c18b32e3d69588f4e0a71c06a4a7c7 Mon Sep 17 00:00:00 2001 From: Peter van der Perk Date: Wed, 1 Apr 2026 11:48:44 +0200 Subject: [PATCH] feat(dshot): fix protected kernel link error (__dso_handle) Fix a protected kernel link failure caused by static initialization of a shared uORB::Publication in AM32Settings. Which is problematic for NuttX 12.12.0. The NuttX 12.12 PX4 protected kernel does not provide __dso_handle. --- src/drivers/dshot/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/dshot/CMakeLists.txt b/src/drivers/dshot/CMakeLists.txt index 58f2894f88..ddc9a50e22 100644 --- a/src/drivers/dshot/CMakeLists.txt +++ b/src/drivers/dshot/CMakeLists.txt @@ -42,6 +42,7 @@ px4_add_module( MAIN dshot COMPILE_FLAGS -DPARAM_PREFIX="${PARAM_PREFIX}" + -fno-use-cxa-atexit # -DDEBUG_BUILD SRCS DShot.cpp