diff --git a/arch/x86/core/ia32/crt0.S b/arch/x86/core/ia32/crt0.S index 1c9afd3318d..0c6148001c8 100644 --- a/arch/x86/core/ia32/crt0.S +++ b/arch/x86/core/ia32/crt0.S @@ -97,7 +97,7 @@ vm_enter: #endif /* CONFIG_X86_MMU */ .endm -SECTION_FUNC(TEXT_START, __start) +SECTION_FUNC(TEXT, __start) #include "../common.S" diff --git a/include/arch/x86/ia32/linker.ld b/include/arch/x86/ia32/linker.ld index d71620f4761..de1fbd59897 100644 --- a/include/arch/x86/ia32/linker.ld +++ b/include/arch/x86/ia32/linker.ld @@ -109,8 +109,7 @@ SECTIONS #include /* Needs KEEP() as ENTRY() is given a physical address */ - KEEP(*(.text_start)) - KEEP(*(".text_start.*")) + KEEP(*(.text.__start)) *(.text) *(".text.*") *(.gnu.linkonce.t.*) diff --git a/include/linker/sections.h b/include/linker/sections.h index e106083ceea..57b81031599 100644 --- a/include/linker/sections.h +++ b/include/linker/sections.h @@ -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