linker: remove TEXT_START macro

There is exactly one function being defined with TEXT_START
macro so the x86-32 __start can appear at the beginning of
text section. Since no one else is using it, better remove
TEXT_START to simplify things.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-02-22 13:21:00 -08:00 committed by Kumar Gala
commit af49ec0277
3 changed files with 2 additions and 8 deletions

View file

@ -97,7 +97,7 @@ vm_enter:
#endif /* CONFIG_X86_MMU */
.endm
SECTION_FUNC(TEXT_START, __start)
SECTION_FUNC(TEXT, __start)
#include "../common.S"

View file

@ -109,8 +109,7 @@ SECTIONS
#include <snippets-rom-start.ld>
/* Needs KEEP() as ENTRY() is given a physical address */
KEEP(*(.text_start))
KEEP(*(".text_start.*"))
KEEP(*(.text.__start))
*(.text)
*(".text.*")
*(.gnu.linkonce.t.*)

View file

@ -71,11 +71,6 @@
#if defined(_ASMLANGUAGE)
/* Various text section names */
#define TEXT text
#if defined(CONFIG_X86)
#define TEXT_START text_start /* beginning of TEXT section */
#else
#define TEXT_START text /* beginning of TEXT section */
#endif
/* Various data type section names */
#define BSS bss