Skip to content

Commit e11706a

Browse files
keith-packardnashif
authored andcommitted
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: Keith Packard <keithp@keithp.com>
1 parent 4a70346 commit e11706a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soc/openisa/rv32m1/linker.ld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ SECTIONS
257257

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

260+
/DISCARD/ : { *(.note.GNU-stack) }
261+
260262
SECTION_PROLOGUE(.riscv.attributes, 0,)
261263
{
262264
KEEP(*(.riscv.attributes))

0 commit comments

Comments
 (0)