Skip to content

Commit bf9ce13

Browse files
keith-packardnashif
authored andcommitted
soc/esp32c6: Discard .note.GNU-stack sections while linking
These sections are simple stack behavior annotations and are not needed in the final executable. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent d1ec496 commit bf9ce13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

soc/espressif/esp32c6/default_lpcore.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ SECTIONS
121121
__stack_top = ORIGIN(ram) + LENGTH(ram);
122122

123123
#include <zephyr/linker/debug-sections.ld>
124+
125+
/DISCARD/ : { *(.note.GNU-stack) }
126+
124127
SECTION_PROLOGUE(.riscv.attributes, 0,)
125128
{
126129
KEEP(*(.riscv.attributes))

0 commit comments

Comments
 (0)