summaryrefslogtreecommitdiff
path: root/modules/foo/foo.ld
blob: cea3a324ca63c1b06a1a74be3b39e4afde73592a (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
OUTPUT_ARCH("i386")
OUTPUT_FORMAT("binary")
ENTRY(entry)

addr_phys = 0x0010a000;

SECTIONS {
	.text addr_phys : {
		*(.text)
		*(.rodata*)
	}
	
	. = ALIGN(0x1000);
	.data : {
		*(.data)
		*(.ctors)
	}
	
	. = ALIGN(0x1000);
	.bss : {
		*(.bss)
		*(COMMON)
	}
	
}