Project

General

Profile

Statistics
| Branch: | Revision:

scoutos / prex-0.9.0 / bsp / hal / ppc / arch / kern.ld @ 03e9c04a

History | View | Annotate | Download (584 Bytes)

1 03e9c04a Brad Neuman
/*
2
 * Linker script for kernel
3
 */
4
INCLUDE config.ld
5
OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
6
OUTPUT_ARCH(powerpc)
7
ENTRY(kernel_start)
8
PHDRS
9
{
10
	text PT_LOAD FILEHDR PHDRS;
11
	data PT_LOAD;
12
}
13
SECTIONS
14
{
15
	. = CONFIG_KERNEL_TEXT + SIZEOF_HEADERS;
16
17
	.text : {
18
		*(.text)
19
	} : text = 0x9090
20
21
	. = ALIGN(32);
22
	.rodata : {
23
		*(.rodata)
24
		*(.rodata.*)
25
	} : text
26
27
	. = ALIGN(32);
28
	.data : {
29
		*(.data)
30
		*(.sdata)
31
		*(.sdata2)
32
	} : data
33
34
	__bss = .;
35
	.bss .    : {
36
		*(.sbss)
37
		*(.bss)
38
		*(COMMON)
39
	}
40
	. = ALIGN(32 / 8);
41
	__end = .;
42
43
	/DISCARD/ : { *(.comment .note) }
44
}