Rev 2516 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2516 | Rev 2787 | ||
---|---|---|---|
1 | /** IA-64 linker script |
1 | /** IA-64 linker script |
2 | * |
2 | * |
3 | * It is ELF format, but its only section looks like this: |
3 | * It is ELF format, but its only section looks like this: |
4 | * kernel text |
4 | * kernel text |
5 | * kernel data |
5 | * kernel data |
6 | * |
6 | * |
7 | */ |
7 | */ |
8 | 8 | ||
9 | ENTRY(kernel_image_start) |
9 | ENTRY(kernel_image_start) |
10 | 10 | ||
11 | SECTIONS { |
11 | SECTIONS { |
12 | .image 0xe000000004404000: AT (0x0000000004404000) { |
12 | .image 0xe000000004404000: AT (0x0000000004404000) { |
13 | ktext_start = .; |
13 | ktext_start = .; |
14 | *(K_TEXT_START); |
14 | *(K_TEXT_START); |
15 | *(.text) |
15 | *(.text) |
16 | ktext_end = .; |
16 | ktext_end = .; |
17 | 17 | ||
18 | kdata_start = .; |
18 | kdata_start = .; |
19 | *(K_DATA_START) |
19 | *(K_DATA_START) |
20 | *(.rodata .rodata.*) |
20 | *(.rodata .rodata.*) |
21 | *(.opd) |
21 | *(.opd) |
22 | *(.data .data.*) |
22 | *(.data .data.*) |
23 | *(.got .got.*) |
23 | *(.got .got.*) |
24 | *(.sdata) |
24 | *(.sdata) |
25 | *(.sbss) |
25 | *(.sbss) |
26 | *(.scommon) |
26 | *(.scommon) |
27 | *(.bss) |
27 | *(.bss) |
28 | *(COMMON); |
28 | *(COMMON); |
29 | 29 | ||
30 | symbol_table = .; |
30 | symbol_table = .; |
31 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
31 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
32 | 32 | ||
33 | kdata_end = .; |
33 | kdata_end = .; |
34 | } |
34 | } |
35 | 35 | ||
36 | /DISCARD/ : { |
36 | /DISCARD/ : { |
37 | *(*); |
37 | *(*); |
38 | } |
38 | } |
39 | 39 | ||
40 | _hardcoded_ktext_size = ktext_end - ktext_start; |
40 | _hardcoded_ktext_size = ktext_end - ktext_start; |
41 | _hardcoded_kdata_size = kdata_end - kdata_start; |
41 | _hardcoded_kdata_size = kdata_end - kdata_start; |
42 | _hardcoded_load_address = 0xe000000004404000; |
42 | _hardcoded_load_address = 0xe000000004404000; |
43 | 43 | ||
44 | } |
44 | } |
45 | 45 |