Rev 2787 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2128 | jermar | 1 | /* |
4377 | svoboda | 2 | * ARM linker script |
3 | * |
||
2128 | jermar | 4 | * kernel text |
5 | * kernel data |
||
4377 | svoboda | 6 | * |
2128 | jermar | 7 | */ |
8 | |||
4377 | svoboda | 9 | #define KERNEL_LOAD_ADDRESS 0x80200000 |
10 | |||
2465 | jermar | 11 | OUTPUT_ARCH(arm) |
4377 | svoboda | 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 = .; |
||
4377 | svoboda | 23 | *(.data); /* initialized data */ |
2128 | jermar | 24 | hardcoded_ktext_size = .; |
4377 | svoboda | 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); |
4377 | svoboda | 30 | *(.bss); /* uninitialized static variables */ |
31 | *(COMMON); /* global variables */ |
||
32 | |||
2128 | jermar | 33 | *(.rodata*); |
34 | *(.sdata); |
||
35 | *(.reginfo); |
||
2465 | jermar | 36 | symbol_table = .; |
4377 | svoboda | 37 | *(symtab.*); |
2128 | jermar | 38 | } |
39 | .sbss : { |
||
40 | *(.sbss); |
||
41 | *(.scommon); |
||
42 | } |
||
4377 | svoboda | 43 | |
2128 | jermar | 44 | kdata_end = .; |
4377 | svoboda | 45 | |
2128 | jermar | 46 | /DISCARD/ : { |
47 | *(.mdebug*); |
||
48 | *(.pdr); |
||
49 | *(.comment); |
||
50 | *(.note); |
||
51 | } |
||
52 | } |