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:
parent
f7b0398e7e
commit
1ee7b0dc5a
|
@ -107,6 +107,7 @@ SECTIONS
|
||||||
*(.text)
|
*(.text)
|
||||||
*(".text.*")
|
*(".text.*")
|
||||||
*(.gnu.linkonce.t.*)
|
*(.gnu.linkonce.t.*)
|
||||||
|
*(.eh_frame_hdr)
|
||||||
*(.eh_frame)
|
*(.eh_frame)
|
||||||
*(.init)
|
*(.init)
|
||||||
*(.fini)
|
*(.fini)
|
||||||
|
@ -450,6 +451,8 @@ SECTIONS
|
||||||
|
|
||||||
#include <linker/debug-sections.ld>
|
#include <linker/debug-sections.ld>
|
||||||
|
|
||||||
|
/DISCARD/ : { *(.note.GNU-stack) }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_XIP
|
#ifdef CONFIG_XIP
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
SECTION_PROLOGUE(.stab.exclstr, 0,) { *(.stab.exclstr) }
|
SECTION_PROLOGUE(.stab.exclstr, 0,) { *(.stab.exclstr) }
|
||||||
SECTION_PROLOGUE(.stab.index, 0,) { *(.stab.index) }
|
SECTION_PROLOGUE(.stab.index, 0,) { *(.stab.index) }
|
||||||
SECTION_PROLOGUE(.stab.indexstr, 0,) { *(.stab.indexstr) }
|
SECTION_PROLOGUE(.stab.indexstr, 0,) { *(.stab.indexstr) }
|
||||||
|
SECTION_PROLOGUE(.gnu.build.attributes, 0,) { *(.gnu.build.attributes .gnu.build.attributes.*) }
|
||||||
SECTION_PROLOGUE(.comment, 0,) { *(.comment) }
|
SECTION_PROLOGUE(.comment, 0,) { *(.comment) }
|
||||||
/* DWARF debug sections.
|
/* DWARF debug sections.
|
||||||
Symbols in the DWARF debugging sections are relative to the beginning
|
Symbols in the DWARF debugging sections are relative to the beginning
|
||||||
|
|
Loading…
Reference in a new issue