Subversion Repositories HelenOS

Rev

Rev 1962 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
37 jermar 1
/*
2
 *  IA-64 linker script
3
 *
4
 *  It is ELF format, but its only section looks like this:
5
 *  kernel text
6
 *  kernel data
7
 *
8
 */
9
 
35 jermar 10
OUTPUT_FORMAT(elf64-ia64-little)
11
ENTRY(kernel_image_start)
12
 
13
SECTIONS {
106 jermar 14
	.image 0x0000000000001000: AT (0x0000000000001000) { 
15
		ktext_start = .;
16
		*(K_TEXT_START);
151 decky 17
		*(.text)
106 jermar 18
		ktext_end = .;
151 decky 19
 
106 jermar 20
		kdata_start = .;
21
		*(K_DATA_START)
151 decky 22
		*(.rodata .rodata.*)
106 jermar 23
		*(.opd)
151 decky 24
		*(.data)
25
		*(.got .got.*)
26
		*(.sdata)
27
		*(.sbss)
106 jermar 28
		*(.scommon)
151 decky 29
		*(.bss)
106 jermar 30
		*(COMMON);
272 vana 31
 
32
                symbol_table = .;
33
                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
34
 
106 jermar 35
		kdata_end = .;
36
	}
37 jermar 37
 
106 jermar 38
	_hardcoded_ktext_size = ktext_end - ktext_start;
39
	_hardcoded_kdata_size = kdata_end - kdata_start;
40
	_hardcoded_load_address = 0x0000000000001000;
125 jermar 41
 
35 jermar 42
}