Subversion Repositories HelenOS-historic

Rev

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

Rev Author Line No. Line
455 decky 1
/** PPC32 linker script
163 decky 2
 *
3
 *  It is ELF format, but its only section looks like this:
1 jermar 4
 *  kernel text
5
 *  kernel data
163 decky 6
 *
1 jermar 7
 */
8
 
455 decky 9
#define __ASM__
10
 
1 jermar 11
ENTRY(kernel_image_start)
12
 
13
SECTIONS {
951 decky 14
	.image 0x400000: AT (0x400000) { 
125 jermar 15
		ktext_start = .;
160 jermar 16
		*(K_TEXT_START)
125 jermar 17
		*(.text);
163 decky 18
		ktext_end = .;
19
 
20
		kdata_start = .;
21
		*(K_DATA_START)
162 decky 22
		*(.rodata);
23
		*(.rodata.*);
24
		*(.data);		/* initialized data */
25
		*(.sdata);
210 decky 26
		*(.sdata2);
162 decky 27
		*(.sbss);
218 decky 28
		hardcoded_ktext_size = .;
29
		LONG(ktext_end - ktext_start);	
30
		hardcoded_kdata_size = .;
31
		LONG(kdata_end - kdata_start);
32
		hardcoded_load_address = .;
951 decky 33
		LONG(0x400000);
162 decky 34
		*(.bss);		/* uninitialized static variables */	
35
		*(COMMON); 		/* global variables */
287 jermar 36
 
37
		symbol_table = .;
455 decky 38
		*(symtab.*);            /* Symbol table, must be LAST symbol!*/
287 jermar 39
 
125 jermar 40
		kdata_end = .;
41
	}
1 jermar 42
}