linker: x86: add orphan linker sections

Add missing linker section to avoid warning about orphans when building
with host compiler.

Fixes #12719

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-01-25 19:25:37 -05:00
parent f7b0398e7e
commit 1ee7b0dc5a
2 changed files with 4 additions and 0 deletions

View file

@ -107,6 +107,7 @@ SECTIONS
*(.text)
*(".text.*")
*(.gnu.linkonce.t.*)
*(.eh_frame_hdr)
*(.eh_frame)
*(.init)
*(.fini)
@ -450,6 +451,8 @@ SECTIONS
#include <linker/debug-sections.ld>
/DISCARD/ : { *(.note.GNU-stack) }
}
#ifdef CONFIG_XIP

View file

@ -7,6 +7,7 @@
SECTION_PROLOGUE(.stab.exclstr, 0,) { *(.stab.exclstr) }
SECTION_PROLOGUE(.stab.index, 0,) { *(.stab.index) }
SECTION_PROLOGUE(.stab.indexstr, 0,) { *(.stab.indexstr) }
SECTION_PROLOGUE(.gnu.build.attributes, 0,) { *(.gnu.build.attributes .gnu.build.attributes.*) }
SECTION_PROLOGUE(.comment, 0,) { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning