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:
parent
ccd40d5502
commit
2e1f8090b0
|
@ -209,6 +209,8 @@ SECTIONS
|
|||
|
||||
#include <linker/debug-sections.ld>
|
||||
|
||||
/DISCARD/ : { *(.note.GNU-stack) }
|
||||
|
||||
SECTION_PROLOGUE(.riscv.attributes, 0,)
|
||||
{
|
||||
KEEP(*(.riscv.attributes))
|
||||
|
|
Loading…
Reference in New Issue