Subversion Repositories HelenOS-historic

Rev

Rev 1162 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
455 decky 1
/** PPC32 linker script
163 decky 2
 *
987 decky 3
 * umapped section:
4
 * 	kernel text
5
 * 	kernel data
6
 * mapped section:
7
 *	kernel text
8
 *	kernel data 
163 decky 9
 *
1 jermar 10
 */
11
 
455 decky 12
#define __ASM__
957 decky 13
#include <arch/boot/boot.h>
14
#include <arch/mm/page.h>
455 decky 15
 
1 jermar 16
ENTRY(kernel_image_start)
1165 decky 17
OUTPUT_FORMAT("elf32-powerpc")
1162 decky 18
OUTPUT_ARCH("powerpc:common")
1 jermar 19
 
20
SECTIONS {
987 decky 21
	.unmapped 0: AT (0) {
22
		unmapped_ktext_start = .;
23
		*(K_UNMAPPED_TEXT_START);
24
		unmapped_ktext_end = .;
25
 
26
		unmapped_kdata_start = .;
27
		*(K_UNMAPPED_DATA_START);
28
		unmapped_kdata_start = .;
29
	}
30
 
31
	.mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) { 
125 jermar 32
		ktext_start = .;
987 decky 33
		*(K_TEXT_START);
125 jermar 34
		*(.text);
163 decky 35
		ktext_end = .;
36
 
37
		kdata_start = .;
987 decky 38
		*(K_DATA_START);
162 decky 39
		*(.rodata);
40
		*(.rodata.*);
41
		*(.data);		/* initialized data */
42
		*(.sdata);
210 decky 43
		*(.sdata2);
162 decky 44
		*(.sbss);
218 decky 45
		hardcoded_ktext_size = .;
46
		LONG(ktext_end - ktext_start);	
47
		hardcoded_kdata_size = .;
48
		LONG(kdata_end - kdata_start);
49
		hardcoded_load_address = .;
957 decky 50
		LONG(PA2KA(BOOT_OFFSET));
162 decky 51
		*(.bss);		/* uninitialized static variables */	
52
		*(COMMON); 		/* global variables */
287 jermar 53
 
54
		symbol_table = .;
455 decky 55
		*(symtab.*);            /* Symbol table, must be LAST symbol!*/
287 jermar 56
 
125 jermar 57
		kdata_end = .;
58
	}
1 jermar 59
}