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

soc/openisa: 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 34a03fb4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -257,6 +257,8 @@ SECTIONS

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

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

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