Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (583 Bytes)

1
/*
2
 * Linker script for kernel
3
 */
4
INCLUDE config.ld
5
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
6
OUTPUT_ARCH(arm)
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
		*(.glue_7)
20
		*(.glue_7t)
21
	} : text = 0xff
22

    
23
	. = ALIGN(4);
24
	.rodata : {
25
		*(.rodata)
26
		*(.rodata.*)
27
	} : text
28

    
29
	.data ALIGN(4) : {
30
		*(.data)
31
	} : data = 0xff
32

    
33
	. = ALIGN(4);
34
	__bss = . ;
35
	.bss .    : {
36
		*(.bss)
37
		*(COMMON)
38
	}
39
	. = ALIGN(4);
40
	__end = . ;
41

    
42
	/DISCARD/ : { *(.comment .note) }
43
}