Boot framework rework (#45)
[lunaix-os.git] / lunaix-os / arch / x86 / includes / linking / boot_secs.ldx
1 #ifndef __LUNAIX_BOOT_SECS_LD_INC
2 #define __LUNAIX_BOOT_SECS_LD_INC
3
4 #include "base_defs.ld.inc"
5
6 .boot.text BLOCK(PAGE_GRAN) :
7 {
8 #if defined(CONFIG_X86_BL_MB) || defined(CONFIG_X86_BL_MB2)
9     *(.multiboot)
10 #endif
11
12     *(.boot.text)
13 } : boot_text 
14
15 .boot.data BLOCK(PAGE_GRAN) :
16 {
17     /*
18         We treat our boot.bss as data.
19         to avoid confusing linker and some bootloader
20     */
21     *(.boot.data)
22     *(.boot.bss)
23 } : boot_data
24
25 #endif /* __LUNAIX_BOOT_SECS_LD_INC */