linker: riscv: discard .note.GNU-stack

Similar to what was required for x86 in #12719 / PR#12752

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
This commit is contained in:
Peter Robinson 2019-11-02 13:11:02 +00:00 committed by Anas Nashif
parent ccd40d5502
commit 2e1f8090b0
1 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,8 @@ SECTIONS
#include <linker/debug-sections.ld>
/DISCARD/ : { *(.note.GNU-stack) }
SECTION_PROLOGUE(.riscv.attributes, 0,)
{
KEEP(*(.riscv.attributes))