aboutsummaryrefslogtreecommitdiff
path: root/flat.lds
blob: 933ed60bb5069468b4c7f2fb80f92c24dada5053 (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
OUTPUT_ARCH(i386)

SECTIONS
{
    . = 1024K - 64K;
    stext = .;
    .text : { *(.text.startup) *(.text) *(.text.*) }
    . = ALIGN(16);
    .data : { *(.data) }
    . = ALIGN(16);
    .rodata : { *(.rodata) }
    . = ALIGN(16);
    .bss : { *(.bss) }
    . = ALIGN(16);
    edata = .;
    . = 1024K - 128;
    sinit = .;
    .init : {
	*(.init);
	. = 128 - 16;
        *(.resetvector);
	. = 128;
    }
    einit = .;
}

ENTRY(main)