Subversion Repositories HelenOS

Rev

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