Subversion Repositories HelenOS

Rev

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

Rev Author Line No. Line
1 jermar 1
/*
2
 *  MIPS linker script
3
 *  
4
 *  kernel text
5
 *  kernel data
6
 *  
7
 */
8
 
9
OUTPUT_FORMAT(binary)
111 palkovsky 10
ENTRY(kernel_image_start) 
1 jermar 11
 
12
SECTIONS {
130 decky 13
	.image 0x80000000: AT (0x80000000) {
14
		_gp = 0x00000000;
15
 
106 jermar 16
		ktext_start = .;
17
		*(.text);
18
		ktext_end = .;
1 jermar 19
 
106 jermar 20
		kdata_start = .;
130 decky 21
		*(.reginfo);
22
		*(.rodata);
23
		*(.rodata.*);
106 jermar 24
		*(.rdata);
25
		*(.data);		/* initialized data */
26
		*(.lit8);
27
		*(.lit4);
28
		*(.sdata);
29
		*(.sbss);
30
		*(.bss);		/* uninitialized static variables */	
31
		*(.scommon);
32
		*(COMMON); 		/* global variables */
33
		kdata_end = .;
1 jermar 34
 
106 jermar 35
	} = 0x00000000
1 jermar 36
 
106 jermar 37
	. = ABSOLUTE(hardcoded_ktext_size);
38
	.patch_1 : {
125 jermar 39
		LONG(ktext_end - ktext_start);
106 jermar 40
	}
1 jermar 41
 
106 jermar 42
	. = ABSOLUTE(hardcoded_kdata_size);
43
	.patch_2 : {
125 jermar 44
		LONG(kdata_end - kdata_start);
106 jermar 45
	}
1 jermar 46
 
106 jermar 47
	. = ABSOLUTE(hardcoded_load_address);
48
	.patch_3 : {
125 jermar 49
		LONG(0x80000000);
106 jermar 50
	}
1 jermar 51
 
52
}