Commit d44f8065 authored by Keith Packard's avatar Keith Packard Committed by Henrik Brix Andersen
Browse files

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: default avatarKeith Packard <keithp@keithp.com>
parent 27318b27
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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))