Subversion Repositories HelenOS

Rev

Rev 1787 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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