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

soc/sensry: 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 246c8272
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -240,6 +240,8 @@ SECTIONS

        #include <zephyr/linker/debug-sections.ld>

	/DISCARD/ : { *(.note.GNU-stack) }

        SECTION_PROLOGUE(.riscv.attributes, 0,)
        {
            KEEP(*(.riscv.attributes))