Subversion Repositories HelenOS-historic

Rev

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

Rev Author Line No. Line
1 jermar 1
/*
163 decky 2
 *  PPC linker script
3
 *
4
 *  It is ELF format, but its only section looks like this:
1 jermar 5
 *  kernel text
6
 *  kernel data
163 decky 7
 *
1 jermar 8
 */
9
 
163 decky 10
OUTPUT_FORMAT(elf32-powerpc)
1 jermar 11
ENTRY(kernel_image_start)
12
 
13
SECTIONS {
125 jermar 14
	.image 0x80000000: AT (0x80000000) { 
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);
28
		*(.bss);		/* uninitialized static variables */	
29
		*(COMMON); 		/* global variables */
125 jermar 30
		kdata_end = .;
31
	}
163 decky 32
 
33
	_hardcoded_ktext_size = ktext_end - ktext_start;
34
	_hardcoded_kdata_size = kdata_end - kdata_start;
35
	_hardcoded_load_address = 0x80000000;
1 jermar 36
}