Project

General

Profile

Statistics
| Branch: | Revision:

root / prex-0.9.0 / bsp / drv / arm / arch / driver.ld @ 03e9c04a

History | View | Annotate | Download (541 Bytes)

1 03e9c04a Brad Neuman
/*
2
 * Linker script for driver
3
 */
4
INCLUDE config.ld
5
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
6
OUTPUT_ARCH(arm)
7
ENTRY(driver_main)
8
PHDRS
9
{
10
	text PT_LOAD FILEHDR PHDRS;
11
	data PT_LOAD;
12
}
13
SECTIONS
14
{
15
	. = SIZEOF_HEADERS ;
16
17
	.text : {
18
		*(.text)
19
		*(.glue_7)
20
		*(.glue_7t)
21
	} : text = 0xff
22
23
	. = ALIGN(4);
24
25
	.rodata : {
26
		*(.rodata)
27
		*(.rodata.*)
28
	} : text
29
30
        . = ALIGN(4);
31
	.data : {
32
		*(.data)
33
	} : data
34
35
        . = ALIGN(4);
36
	.bss . : {
37
		*(.bss)
38
		*(COMMON)
39
	}
40
41
	/DISCARD/ : { *(.comment .note .debug_*) }
42
}