source: mainline/kernel/arch/ia64/_link.ld.in@ 8fb47ec0

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 8fb47ec0 was 19b5929, checked in by Jakub Jermar <jakub@…>, 16 years ago

Define the hardcoded_* variables in the ia64 linker script.

  • Property mode set to 100644
File size: 873 bytes
Line 
1/** IA-64 linker script
2 *
3 * It is ELF format, but its only section looks like this:
4 * kernel text
5 * kernel data
6 *
7 */
8
9#define LOAD_ADDRESS_V 0xe000000004404000
10#define LOAD_ADDRESS_P 0x0000000004404000
11
12ENTRY(kernel_image_start)
13
14SECTIONS {
15 .image LOAD_ADDRESS_V: AT (LOAD_ADDRESS_P) {
16 ktext_start = .;
17 *(K_TEXT_START);
18 *(.text)
19 ktext_end = .;
20
21 kdata_start = .;
22 *(K_DATA_START)
23 *(.rodata .rodata.*)
24 *(.opd)
25 *(.data .data.*)
26 hardcoded_load_address = .;
27 QUAD(LOAD_ADDRESS_V);
28 hardcoded_ktext_size = .;
29 QUAD(ktext_end - ktext_start);
30 hardcoded_kdata_size = .;
31 QUAD(kdata_end - kdata_start);
32 *(.got .got.*)
33 *(.sdata)
34 *(.sbss)
35 *(.scommon)
36 *(.bss)
37 *(COMMON);
38
39 symbol_table = .;
40 *(symtab.*); /* Symbol table, must be LAST symbol!*/
41
42 kdata_end = .;
43 }
44
45 /DISCARD/ : {
46 *(*);
47 }
48
49}
Note: See TracBrowser for help on using the repository browser.