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>
This commit is contained in:
parent
27318b2771
commit
d44f8065da
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ SECTIONS
|
|||
__stack_top = ORIGIN(ram) + LENGTH(ram);
|
||||
|
||||
#include <zephyr/linker/debug-sections.ld>
|
||||
|
||||
/DISCARD/ : { *(.note.GNU-stack) }
|
||||
|
||||
SECTION_PROLOGUE(.riscv.attributes, 0,)
|
||||
{
|
||||
KEEP(*(.riscv.attributes))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue