Subversion Repositories HelenOS

Rev

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

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