linker: riscv32: Fix .riscv.attributes orphan sections warning

Add similar fix to riscv32 linker scripts that we have on ARM for
.riscv.attributes section.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-02-14 23:48:18 -06:00 committed by Anas Nashif
commit 10f2bdfc57
2 changed files with 11 additions and 0 deletions

View file

@ -191,4 +191,10 @@ SECTIONS
#include <linker/debug-sections.ld>
SECTION_PROLOGUE(.riscv.attributes, 0,)
{
KEEP(*(.riscv.attributes))
KEEP(*(.gnu.attributes))
}
}

View file

@ -191,6 +191,11 @@ SECTIONS
#include <linker/debug-sections.ld>
SECTION_PROLOGUE(.riscv.attributes, 0,)
{
KEEP(*(.riscv.attributes))
KEEP(*(.gnu.attributes))
}
/*
* Pulpino toolchains emit these sections; we don't care about them,
* but need to avoid build system warnings about orphaned sections.