Subversion Repositories HelenOS

Rev

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

Rev 2128 Rev 2465
Line 4... Line 4...
4
 *  kernel text
4
 *  kernel text
5
 *  kernel data
5
 *  kernel data
6
 *  
6
 *  
7
 */
7
 */
8
 
8
 
-
 
9
OUTPUT_ARCH(arm)
9
ENTRY(kernel_image_start) 
10
ENTRY(kernel_image_start) 
10
 
11
 
-
 
12
 
11
SECTIONS {
13
SECTIONS {
-
 
14
	. = KERNEL_LOAD_ADDRESS;
12
	.text : {
15
	.text : {
13
		ktext_start = .;
16
		ktext_start = .;
14
		*(.text);
17
		*(.text);
15
		ktext_end = .;
18
		ktext_end = .;
16
	}
19
	}
Line 20... Line 23...
20
		hardcoded_ktext_size = .;
23
		hardcoded_ktext_size = .;
21
		LONG(ktext_end - ktext_start);	
24
		LONG(ktext_end - ktext_start);	
22
		hardcoded_kdata_size = .;
25
		hardcoded_kdata_size = .;
23
		LONG(kdata_end - kdata_start);
26
		LONG(kdata_end - kdata_start);
24
		hardcoded_load_address = .;
27
		hardcoded_load_address = .;
25
		LONG(0);		/* TODO */
28
		LONG(KERNEL_LOAD_ADDRESS);
-
 
29
		*(.bss);		/* uninitialized static variables */
-
 
30
		*(COMMON); 		/* global variables */
-
 
31
 
26
		*(.rodata*);
32
		*(.rodata*);
27
		*(.sdata);
33
		*(.sdata);
28
		*(.reginfo);
34
		*(.reginfo);
-
 
35
		symbol_table = .;
29
		*(symtab.*);             
36
		*(symtab.*);             
30
	}
37
	}
31
	_gp = . + 0x8000;
-
 
32
	.lit8 : { *(.lit8) }
-
 
33
	.lit4 : { *(.lit4) }
-
 
34
	.sbss : {
38
	.sbss : {
35
		*(.sbss);
39
		*(.sbss);
36
		*(.scommon);
40
		*(.scommon);
37
	}
41
	}
38
	.bss : {
-
 
39
		*(.bss);		/* uninitialized static variables */
-
 
40
		*(COMMON); 		/* global variables */
-
 
41
	}
-
 
42
 
42
 
43
	kdata_end = .;
43
	kdata_end = .;
44
 
44
 
45
	/DISCARD/ : {
45
	/DISCARD/ : {
46
	  *(.mdebug*);
46
	  *(.mdebug*);
47
	  *(.pdr);
47
	  *(.pdr);
48
	  *(.comment);
48
	  *(.comment);
49
	  *(.note);
49
	  *(.note);
50
	}
50
	}
-
 
51
 
51
}
52
}