Subversion Repositories HelenOS-historic

Rev

Rev 869 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 869 Rev 1422
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__
9
#define __ASM__
10
 
10
 
11
ENTRY(kernel_image_start)
11
ENTRY(kernel_image_start)
12
 
12
 
13
SECTIONS {
13
SECTIONS {
14
	.image 0xe000000000100000: AT (0x0000000000100000) { 
14
	.image 0xe000000000100000: AT (0x0000000000100000) { 
15
		ktext_start = .;
15
		ktext_start = .;
16
		*(K_TEXT_START);
16
		*(K_TEXT_START);
17
		*(.text)
17
		*(.text)
18
		ktext_end = .;
18
		ktext_end = .;
19
		
19
		
20
		kdata_start = .;
20
		kdata_start = .;
21
		*(K_DATA_START)
21
		*(K_DATA_START)
22
		*(.rodata .rodata.*)
22
		*(.rodata .rodata.*)
23
		*(.opd)
23
		*(.opd)
24
		*(.data)
24
		*(.data .data.*)
25
		*(.got .got.*)
25
		*(.got .got.*)
26
		*(.sdata)
26
		*(.sdata)
27
		*(.sbss)
27
		*(.sbss)
28
		*(.scommon)
28
		*(.scommon)
29
		*(.bss)
29
		*(.bss)
30
		*(COMMON);
30
		*(COMMON);
31
 
31
 
32
                symbol_table = .;
32
                symbol_table = .;
33
                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
33
                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
34
 
34
 
35
		kdata_end = .;
35
		kdata_end = .;
36
	}
36
	}
-
 
37
 
-
 
38
	/DISCARD/ : {
-
 
39
		*(*);
-
 
40
	}
37
 
41
 
38
	_hardcoded_ktext_size = ktext_end - ktext_start;
42
	_hardcoded_ktext_size = ktext_end - ktext_start;
39
	_hardcoded_kdata_size = kdata_end - kdata_start;
43
	_hardcoded_kdata_size = kdata_end - kdata_start;
40
	_hardcoded_load_address = 0xe000000000100000;
44
	_hardcoded_load_address = 0xe000000000100000;
41
 
45
 
42
}
46
}
43
 
47