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:
parent
8c1179e548
commit
af49ec0277
3 changed files with 2 additions and 8 deletions
|
@ -97,7 +97,7 @@ vm_enter:
|
||||||
#endif /* CONFIG_X86_MMU */
|
#endif /* CONFIG_X86_MMU */
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
SECTION_FUNC(TEXT_START, __start)
|
SECTION_FUNC(TEXT, __start)
|
||||||
|
|
||||||
#include "../common.S"
|
#include "../common.S"
|
||||||
|
|
||||||
|
|
|
@ -109,8 +109,7 @@ SECTIONS
|
||||||
#include <snippets-rom-start.ld>
|
#include <snippets-rom-start.ld>
|
||||||
|
|
||||||
/* Needs KEEP() as ENTRY() is given a physical address */
|
/* Needs KEEP() as ENTRY() is given a physical address */
|
||||||
KEEP(*(.text_start))
|
KEEP(*(.text.__start))
|
||||||
KEEP(*(".text_start.*"))
|
|
||||||
*(.text)
|
*(.text)
|
||||||
*(".text.*")
|
*(".text.*")
|
||||||
*(.gnu.linkonce.t.*)
|
*(.gnu.linkonce.t.*)
|
||||||
|
|
|
@ -71,11 +71,6 @@
|
||||||
#if defined(_ASMLANGUAGE)
|
#if defined(_ASMLANGUAGE)
|
||||||
/* Various text section names */
|
/* Various text section names */
|
||||||
#define TEXT text
|
#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 */
|
/* Various data type section names */
|
||||||
#define BSS bss
|
#define BSS bss
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue