Subversion Repositories HelenOS-historic

Rev

Rev 105 | Rev 110 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
65 decky 1
/** IA-32 linker script
1 jermar 2
 *  
105 jermar 3
 * umapped section:
4
 * 	kernel text
5
 * 	kernel data
6
 * mapped section:
7
 *	kernel text
8
 *	kernel data 
1 jermar 9
 */
10
 
11
OUTPUT_FORMAT(binary)
12
ENTRY(kernel_image_start)
13
 
14
SECTIONS {
106 jermar 15
	.unmapped 0x8000: AT (0x8000) {
16
		unmapped_ktext_start = .;
17
		*(K_TEXT_START);
18
		unmapped_ktext_end = .;
19
		unmapped_kdata_start = .;
20
		*(K_DATA_START);
21
		unmapped_kdata_end = .;
22
	}
1 jermar 23
 
106 jermar 24
	.mapped (0x80000000+SIZEOF(.unmapped)+0x8000) : AT (0x8000+SIZEOF(.unmapped)) { 
25
		ktext_start = .;
26
		*(.text);
27
		ktext_end = .;
1 jermar 28
 
106 jermar 29
		kdata_start = .;
30
		*(.data);		/* initialized data */
31
		*(.rodata*);		/* string literals */
32
		*(COMMON);		/* global variables */
33
		*(.bss);		/* uninitialized static variables */
34
		*(K_DATA_END);
35
		kdata_end = .;
36
	}
1 jermar 37
 
106 jermar 38
	_hardcoded_ktext_size = ktext_end - ktext_start + (unmapped_ktext_end - unmapped_ktext_start);
39
	_hardcoded_kdata_size = kdata_end - kdata_start + (unmapped_kdata_end - unmapped_kdata_start);
40
	_hardcoded_load_address = 0x80008000;
41
 
1 jermar 42
}