Subversion Repositories HelenOS-historic

Rev

Rev 957 | Rev 1162 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 957 Rev 987
Line 1... Line 1...
1
/** PPC32 linker script
1
/** PPC32 linker script
2
 *
2
 *
3
 *  It is ELF format, but its only section looks like this:
3
 * umapped section:
4
 *  kernel text
4
 * 	kernel text
5
 *  kernel data
5
 * 	kernel data
-
 
6
 * mapped section:
-
 
7
 *	kernel text
-
 
8
 *	kernel data 
6
 *
9
 *
7
 */
10
 */
8
 
11
 
9
#define __ASM__
12
#define __ASM__
10
#include <arch/boot/boot.h>
13
#include <arch/boot/boot.h>
11
#include <arch/mm/page.h>
14
#include <arch/mm/page.h>
12
 
15
 
13
ENTRY(kernel_image_start)
16
ENTRY(kernel_image_start)
14
 
17
 
15
SECTIONS {
18
SECTIONS {
-
 
19
	.unmapped 0: AT (0) {
-
 
20
		unmapped_ktext_start = .;
-
 
21
		*(K_UNMAPPED_TEXT_START);
-
 
22
		unmapped_ktext_end = .;
-
 
23
		
-
 
24
		unmapped_kdata_start = .;
-
 
25
		*(K_UNMAPPED_DATA_START);
-
 
26
		unmapped_kdata_start = .;
-
 
27
	}
-
 
28
	
16
	.image PA2KA(BOOT_OFFSET): AT (0) { 
29
	.mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) { 
17
		ktext_start = .;
30
		ktext_start = .;
18
		*(K_TEXT_START)
31
		*(K_TEXT_START);
19
		*(.text);
32
		*(.text);
20
		ktext_end = .;
33
		ktext_end = .;
21
		
34
		
22
		kdata_start = .;
35
		kdata_start = .;
23
		*(K_DATA_START)
36
		*(K_DATA_START);
24
		*(.rodata);
37
		*(.rodata);
25
		*(.rodata.*);
38
		*(.rodata.*);
26
		*(.data);		/* initialized data */
39
		*(.data);		/* initialized data */
27
		*(.sdata);
40
		*(.sdata);
28
		*(.sdata2);
41
		*(.sdata2);