X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/32b9a6d76790c73d3d2d36d9081a2581cc65d184..28c176b668c841a3b7fb093faccf0efa39257603:/lunaix-os/arch/x86/includes/linking/boot_secs.ldx diff --git a/lunaix-os/arch/x86/includes/linking/boot_secs.ldx b/lunaix-os/arch/x86/includes/linking/boot_secs.ldx new file mode 100644 index 0000000..3c71be1 --- /dev/null +++ b/lunaix-os/arch/x86/includes/linking/boot_secs.ldx @@ -0,0 +1,29 @@ +#ifndef __LUNAIX_BOOT_SECS_LD_INC +#define __LUNAIX_BOOT_SECS_LD_INC + +#include "base_defs.ld.inc" + +__kboot_start = .; + +.boot.text BLOCK(PAGE_GRAN) : +{ +#if defined(CONFIG_X86_BL_MB) || defined(CONFIG_X86_BL_MB2) + *(.multiboot) +#endif + + *(.boot.text) +} + +.boot.bss BLOCK(PAGE_GRAN) : +{ + *(.boot.bss) +} + +.boot.data BLOCK(PAGE_GRAN) : +{ + *(.boot.data) +} + +__kboot_end = ALIGN(PAGE_GRAN); + +#endif /* __LUNAIX_BOOT_SECS_LD_INC */