Subversion Repositories HelenOS-historic

Rev

Rev 418 | Rev 457 | 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
 
11
OUTPUT_FORMAT("elf32-powerpc")
1 jermar 12
ENTRY(kernel_image_start)
13
 
14
SECTIONS {
125 jermar 15
	.image 0x80000000: AT (0x80000000) { 
16
		ktext_start = .;
160 jermar 17
		*(K_TEXT_START)
125 jermar 18
		*(.text);
163 decky 19
		ktext_end = .;
20
 
21
		kdata_start = .;
22
		*(K_DATA_START)
162 decky 23
		*(.rodata);
24
		*(.rodata.*);
25
		*(.data);		/* initialized data */
26
		*(.sdata);
210 decky 27
		*(.sdata2);
162 decky 28
		*(.sbss);
218 decky 29
		hardcoded_ktext_size = .;
30
		LONG(ktext_end - ktext_start);	
31
		hardcoded_kdata_size = .;
32
		LONG(kdata_end - kdata_start);
33
		hardcoded_load_address = .;
34
		LONG(0x80000000);
162 decky 35
		*(.bss);		/* uninitialized static variables */	
36
		*(COMMON); 		/* global variables */
287 jermar 37
 
38
		symbol_table = .;
455 decky 39
		*(symtab.*);            /* Symbol table, must be LAST symbol!*/
287 jermar 40
 
125 jermar 41
		kdata_end = .;
42
	}
1 jermar 43
}