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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since bd5f3b7 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
RevLine 
[6bc4dbd]1/** IA-64 linker script
[2217ac3]2 *
3 * It is ELF format, but its only section looks like this:
4 * kernel text
5 * kernel data
6 *
7 */
8
[4ff284b]9#define LOAD_ADDRESS_V 0xe000000004800000
10#define LOAD_ADDRESS_P 0x0000000004800000
[19b5929]11
[30ef8ce]12ENTRY(kernel_image_start)
13
14SECTIONS {
[19b5929]15 .image LOAD_ADDRESS_V: AT (LOAD_ADDRESS_P) {
[ac5d02b]16 ktext_start = .;
17 *(K_TEXT_START);
[49852df]18 *(.text .text.*)
[ac5d02b]19 ktext_end = .;
[7021492]20
[ac5d02b]21 kdata_start = .;
22 *(K_DATA_START)
[7021492]23 *(.rodata .rodata.*)
[ac5d02b]24 *(.opd)
[6bf18fa]25 *(.data .data.*)
[19b5929]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);
[18ba2e4f]32 __gp = .;
[7021492]33 *(.got .got.*)
34 *(.sdata)
35 *(.sbss)
[ac5d02b]36 *(.scommon)
[7021492]37 *(.bss)
[ac5d02b]38 *(COMMON);
[49852df]39
[1ac3a52]40 . = ALIGN(8);
[49852df]41 symbol_table = .;
42 *(symtab.*); /* Symbol table, must be LAST symbol!*/
43
[ac5d02b]44 kdata_end = .;
45 }
[49852df]46
[6bf18fa]47 /DISCARD/ : {
48 *(*);
49 }
[30ef8ce]50}
Note: See TracBrowser for help on using the repository browser.