source: mainline/arch/ia64/_link.ld.in@ bfb87df

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

Change ia64 kernel image to link and load at 0x100000 where
it (or its heap or stack) won't mess up with the ROM region.

Blacklist ia64 frame 0 from frame allocator so that 0 won't be
returned to malloc and friends. This can be reenabled again
once the kernel is not identity mapped.

  • Property mode set to 100644
File size: 751 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
[6bc4dbd]9#define __ASM__
10
[30ef8ce]11ENTRY(kernel_image_start)
12
13SECTIONS {
[eb1b8b6]14 .image 0x0000000000100000: AT (0x0000000000100000) {
[ac5d02b]15 ktext_start = .;
16 *(K_TEXT_START);
[7021492]17 *(.text)
[ac5d02b]18 ktext_end = .;
[7021492]19
[ac5d02b]20 kdata_start = .;
21 *(K_DATA_START)
[7021492]22 *(.rodata .rodata.*)
[ac5d02b]23 *(.opd)
[7021492]24 *(.data)
25 *(.got .got.*)
26 *(.sdata)
27 *(.sbss)
[ac5d02b]28 *(.scommon)
[7021492]29 *(.bss)
[ac5d02b]30 *(COMMON);
[5e2455a]31
32 symbol_table = .;
33 *(symtab.*); /* Symbol table, must be LAST symbol!*/
34
[ac5d02b]35 kdata_end = .;
36 }
[2217ac3]37
[ac5d02b]38 _hardcoded_ktext_size = ktext_end - ktext_start;
39 _hardcoded_kdata_size = kdata_end - kdata_start;
[eb1b8b6]40 _hardcoded_load_address = 0x0000000000100000;
[76cec1e]41
[30ef8ce]42}
Note: See TracBrowser for help on using the repository browser.