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