diff --git a/arch/x86/crt0.S b/arch/x86/crt0.S index 44b03044..3eb0f077 100644 --- a/arch/x86/crt0.S +++ b/arch/x86/crt0.S @@ -37,7 +37,7 @@ #define NUM_INT 0x31 #define NUM_EXC 0x14 -.text.boot +.section ".text.boot" .global _start _start: jmp real_start diff --git a/arch/x86/kernel.ld b/arch/x86/kernel.ld index 1e3abbad..22a790fc 100644 --- a/arch/x86/kernel.ld +++ b/arch/x86/kernel.ld @@ -25,6 +25,7 @@ ENTRY(_start) SECTIONS { .text 0x0200000 : { + *(.text.boot) *(.text) *(SORT(.text$*)) *(.gnu.linkonce.t.*)