mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 15:44:34 +02:00
fix(system): fixed -fstack-protector issue on P4
During cpu_start stack-smashing would errorounsly trigger when compiled with -Os on P4. This happened due to the stack canary value (stored in bss) changing when we initialized bss and then getting flagged as a stackoverflow. Disable fstack-protector for cpu_start to avoid this issue
This commit is contained in:
@@ -86,7 +86,7 @@ else()
|
|||||||
|
|
||||||
# Disable stack protection in files which are involved in initialization of that feature
|
# Disable stack protection in files which are involved in initialization of that feature
|
||||||
set_source_files_properties(
|
set_source_files_properties(
|
||||||
"startup.c" "stack_check.c"
|
"startup.c" "stack_check.c" "port/cpu_start.c"
|
||||||
PROPERTIES COMPILE_FLAGS
|
PROPERTIES COMPILE_FLAGS
|
||||||
-fno-stack-protector)
|
-fno-stack-protector)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user