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:
parent
479df56858
commit
10f2bdfc57
2 changed files with 11 additions and 0 deletions
|
@ -191,4 +191,10 @@ SECTIONS
|
|||
|
||||
#include <linker/debug-sections.ld>
|
||||
|
||||
SECTION_PROLOGUE(.riscv.attributes, 0,)
|
||||
{
|
||||
KEEP(*(.riscv.attributes))
|
||||
KEEP(*(.gnu.attributes))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue