Skip to content

Commit d5ad0e3

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soc/sensry/ganymed/sy1xx/common/linker.ld

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

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

243+
/DISCARD/ : { *(.note.GNU-stack) }
244+
243245
SECTION_PROLOGUE(.riscv.attributes, 0,)
244246
{
245247
KEEP(*(.riscv.attributes))

0 commit comments

Comments
 (0)