aboutsummaryrefslogtreecommitdiff
path: root/apps/link.ld
blob: 781e38d2ec10f93f69e7d2c2f819f40dcd67e652 (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
OUTPUT_FORMAT("elf32-i386")
OUTPUT_ARCH(i386)
STARTUP(libc.a) /* HUH */
ENTRY(_start)

SECTIONS
{
	. = 0x00000000;

	.text : {
		code = .;
		*(.text)
		*(.rodata)
		. = ALIGN(4096);
	}

	.data : {
		data = .;
		*(.data)
		. = ALIGN(4096);
	}

	.bss : {
		bss = .;
		*(.bss)
		. = ALIGN(4096);
	}

	_GLOBAL_OFFSET_TABLE_ = .;

	. = ALIGN(4096);
}