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>
This commit is contained in:
parent
34a03fb436
commit
246c8272cc
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ SECTIONS
|
|||
|
||||
#include <zephyr/linker/debug-sections.ld>
|
||||
|
||||
/DISCARD/ : { *(.note.GNU-stack) }
|
||||
|
||||
SECTION_PROLOGUE(.riscv.attributes, 0,)
|
||||
{
|
||||
KEEP(*(.riscv.attributes))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue