Subversion Repositories HelenOS-historic

Rev

Rev 125 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jermar 1
/*
2
 *  PowerPC linker script
3
 *  
4
 *  kernel text
5
 *  kernel data
6
 *  
7
 */
8
 
9
OUTPUT_FORMAT(binary)
10
ENTRY(kernel_image_start)
11
 
12
SECTIONS {
13
    .image 0x80000000: AT (0x80000000) { 
14
	ktext_start = .;
15
	*(.text);
16
	ktext_end = .;
17
 
18
	kdata_start = .;
19
	kdata_end = .;
20
 
21
    } = 0x00000000
22
 
23
    . = ABSOLUTE(hardcoded_ktext_size);
24
    .patch_1 : {
25
        LONG(ktext_end - ktext_start);
26
    }
27
 
28
    . = ABSOLUTE(hardcoded_kdata_size);
29
    .patch_2 : {
30
        LONG(kdata_end - kdata_start);
31
    }
32
 
33
    . = ABSOLUTE(hardcoded_load_address);
34
    .patch_3 : {
35
        LONG(0x80000000);
36
    }
37
 
38
}