Subversion Repositories HelenOS-historic

Rev

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

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