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