linker: Fixup warning associated with .ARC.attributes section

With newer linker for ARC we can possibly get a warning like:

   real-ld: warning: orphan section `.ARC.attributes' from `(foo.o)'
   being placed in section `.ARC.attributes'.

Fixes #11060

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-11-02 21:42:47 -05:00 committed by Anas Nashif
commit 321c8202d2

View file

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