Rev 3386 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2128 | jermar | 1 | /* |
4153 | mejdrech | 2 | * ARM linker script |
3 | * |
||
2128 | jermar | 4 | * kernel text |
5 | * kernel data |
||
4153 | mejdrech | 6 | * |
2128 | jermar | 7 | */ |
8 | |||
4153 | mejdrech | 9 | #define KERNEL_LOAD_ADDRESS 0x80200000 |
10 | |||
2465 | jermar | 11 | OUTPUT_ARCH(arm) |
4153 | mejdrech | 12 | ENTRY(kernel_image_start) |
2128 | jermar | 13 | |
14 | SECTIONS { |
||
2465 | jermar | 15 | . = KERNEL_LOAD_ADDRESS; |
2128 | jermar | 16 | .text : { |
17 | ktext_start = .; |
||
18 | *(.text); |
||
19 | ktext_end = .; |
||
20 | } |
||
21 | .data : { |
||
22 | kdata_start = .; |
||
4153 | mejdrech | 23 | *(.data); /* initialized data */ |
2128 | jermar | 24 | hardcoded_ktext_size = .; |
4153 | mejdrech | 25 | LONG(ktext_end - ktext_start); |
2128 | jermar | 26 | hardcoded_kdata_size = .; |
27 | LONG(kdata_end - kdata_start); |
||
28 | hardcoded_load_address = .; |
||
2465 | jermar | 29 | LONG(KERNEL_LOAD_ADDRESS); |
4153 | mejdrech | 30 | *(.bss); /* uninitialized static variables */ |
31 | *(COMMON); /* global variables */ |
||
32 | |||
2128 | jermar | 33 | *(.rodata*); |
34 | *(.sdata); |
||
35 | *(.reginfo); |
||
2465 | jermar | 36 | symbol_table = .; |
4153 | mejdrech | 37 | *(symtab.*); |
2128 | jermar | 38 | } |
39 | .sbss : { |
||
40 | *(.sbss); |
||
41 | *(.scommon); |
||
42 | } |
||
4153 | mejdrech | 43 | |
2128 | jermar | 44 | kdata_end = .; |
4153 | mejdrech | 45 | |
2128 | jermar | 46 | /DISCARD/ : { |
47 | *(.mdebug*); |
||
48 | *(.pdr); |
||
49 | *(.comment); |
||
50 | *(.note); |
||
51 | } |
||
52 | } |