Subversion Repositories HelenOS-historic

Rev

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