Subversion Repositories HelenOS

Rev

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

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