summaryrefslogtreecommitdiff
path: root/x86-bare-metal/multiboot/kern.ld
blob: 5a615c9c9ac92c770155651583fa9b57dbebe32e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ENTRY(_start)

SECTIONS
{
    . = 1M;
    .mbhdr : {
        KEEP(*(.mbhdr))
    }
    .text.boot : {
        *(.text.boot)
    }
    .text : {
        *(.text*)
    }
    .rodata ALIGN (0x1000) : {
        *(.rodata*)
    }
    .data ALIGN (0x1000) : {
        *(.data*)
    }
    .bss : {
        sbss = .;
        *(COMMON)
        *(.bss*)
        ebss = .;
    }
}