From ce7bd57618b2bc3827dd6c9f783b7d1deddfb776 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 5 Jun 2025 09:06:53 -0700 Subject: [PATCH] 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 --- soc/sensry/ganymed/sy1xx/common/linker.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soc/sensry/ganymed/sy1xx/common/linker.ld b/soc/sensry/ganymed/sy1xx/common/linker.ld index c9a08957c81..90b9fe9815f 100644 --- a/soc/sensry/ganymed/sy1xx/common/linker.ld +++ b/soc/sensry/ganymed/sy1xx/common/linker.ld @@ -240,6 +240,8 @@ SECTIONS #include + /DISCARD/ : { *(.note.GNU-stack) } + SECTION_PROLOGUE(.riscv.attributes, 0,) { KEEP(*(.riscv.attributes))