aboutsummaryrefslogtreecommitdiff
path: root/src/linker.ld
blob: 89e4909a6f22fec1ddeac0b0d29a7ba9a10f2c6f (plain)
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
28
29
30
ENTRY(_start)
OUTPUT_FORMAT(elf64-x86-64)

SECTIONS {

    . = 1M;

    .text : ALIGN(4)
    {
        *boot.o(.multiboot)
        *boot.o(.text)
        *(.text)
    }
    .rodata : ALIGN(4)
    {
        *(.rodata)
    }
    .data : ALIGN(4)
    {
        *(.data)
    }
    .bss : ALIGN(4)
    {
        _bss_start = .;
        *(.bss);
        _bss_end = .;
        *(COMMON);
    }

}