diff --git a/libs/libbuiltin/libgcc/CMakeLists.txt b/libs/libbuiltin/libgcc/CMakeLists.txt index 00fa268ced..52f3faa7ba 100644 --- a/libs/libbuiltin/libgcc/CMakeLists.txt +++ b/libs/libbuiltin/libgcc/CMakeLists.txt @@ -25,7 +25,8 @@ endif() if(CONFIG_COVERAGE_MINI AND CONFIG_ARCH_TOOLCHAIN_GCC) nuttx_add_system_library(libcoverage) - target_compile_options(libcoverage PRIVATE -fno-profile-arcs - -fno-test-coverage) + target_compile_options( + libcoverage PRIVATE -fno-profile-arcs -fno-test-coverage + -fno-stack-protector) target_sources(libcoverage PRIVATE gcov.c) endif()