source: mainline/kernel/arch/ia64/_link.ld.in@ 27f67f5

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 27f67f5 was 18ba2e4f, checked in by Jakub Jermar <jakub@…>, 14 years ago

Use an explicitly defined and mutually agreed GP value wrt. ia64 kernel and ld.

  • Property mode set to 100644
File size: 885 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 0xe000000004800000
10#define LOAD_ADDRESS_P 0x0000000004800000
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 .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 __gp = .;
33 *(.got .got.*)
34 *(.sdata)
35 *(.sbss)
36 *(.scommon)
37 *(.bss)
38 *(COMMON);
39
40 . = ALIGN(8);
41 symbol_table = .;
42 *(symtab.*); /* Symbol table, must be LAST symbol!*/
43
44 kdata_end = .;
45 }
46
47 /DISCARD/ : {
48 *(*);
49 }
50}
Note: See TracBrowser for help on using the repository browser.