Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

SDK • Enabling Stack Smashing Protection for debugging

$
0
0
Hello everyone,

I'm trying to shed some light on a Heisenbug in my code - figured SSP might help.

Putting the following in: CMakeLists.txt (I'm using ARMs' 14.2rel1 toolchain from https://developer.arm.com/downloads/-/a ... -downloads

Code:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -fanalyzer -fstack-protector-all")
seems to result in:

Code:

[100%] Linking CXX executable firmware.elf/usr/local/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld: cannot find -lssp_nonshared: No such file or directory/usr/local/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld: cannot find -lssp: No such file or directory
Did anyone figure out a good way to use some canaries with Pico-SDK?

Statistics: Posted by qdot — Wed May 07, 2025 10:02 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles