summaryrefslogtreecommitdiff
path: root/src/stem/link.ld
blob: 1ce17cf8ad75f958f7ec24c6b659a59bd8ec60b9 (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
28
29
30
31
32
ENTRY (loader)

SECTIONS{
    . = 0x00100000;

	.setup : {
		*(.setup)
	}

	. += 0xE0000000;

    .text : AT(ADDR(.text) - 0xE0000000) {
        *(.text)
    }

    .rodata ALIGN (0x1000) : AT(ADDR(.rodata) - 0xE0000000) {
        *(.rodata)
    }

    .data ALIGN (0x1000) : AT(ADDR(.data) - 0xE0000000) {
        *(.data)
    }

    .bss : AT(ADDR(.bss) - 0xE0000000) {
        sbss = .;
        *(COMMON)
        *(.bss)
        ebss = .;
    }

	end = .; _end = .; __end = .;
}