Subversion Repositories HelenOS

Rev

Rev 534 | Rev 2225 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jermar 1
/*
418 jermar 2
 *  MIPS32 linker script
1 jermar 3
 *  
4
 *  kernel text
5
 *  kernel data
6
 *  
7
 */
326 palkovsky 8
#undef mips
9
#define mips mips
1 jermar 10
 
326 palkovsky 11
OUTPUT_ARCH(mips)
12
 
111 palkovsky 13
ENTRY(kernel_image_start) 
1 jermar 14
 
15
SECTIONS {
329 palkovsky 16
	. = KERNEL_LOAD_ADDRESS;
326 palkovsky 17
	.text : {
106 jermar 18
		ktext_start = .;
19
		*(.text);
20
		ktext_end = .;
326 palkovsky 21
	}
22
	.data : {
106 jermar 23
		kdata_start = .;
24
		*(.data);		/* initialized data */
216 palkovsky 25
		hardcoded_ktext_size = .;
26
		LONG(ktext_end - ktext_start);	
27
		hardcoded_kdata_size = .;
28
		LONG(kdata_end - kdata_start);
29
		hardcoded_load_address = .;
329 palkovsky 30
		LONG(KERNEL_LOAD_ADDRESS);
31
		*(.rodata*);
32
		*(.sdata);
33
		*(.reginfo);
332 palkovsky 34
		/* Unfortunately IRIX does not allow us
35
	         * to include this as a last section :-(
36
		 * BSS/SBSS addresses will be wrong */
37
		symbol_table = .;
38
		*(symtab.*);             
326 palkovsky 39
	}
40
	_gp = . + 0x8000;
41
	.lit8 : { *(.lit8) }
42
	.lit4 : { *(.lit4) }
43
	.sbss : {
44
		*(.sbss);
106 jermar 45
		*(.scommon);
326 palkovsky 46
	}
47
	.bss : {
48
		*(.bss);		/* uninitialized static variables */
106 jermar 49
		*(COMMON); 		/* global variables */
326 palkovsky 50
	}
329 palkovsky 51
 
326 palkovsky 52
	kdata_end = .;
268 palkovsky 53
 
329 palkovsky 54
	/DISCARD/ : {
55
	  *(.mdebug*);
56
	  *(.pdr);
57
	  *(.comment);
58
	  *(.note);
59
	}
1 jermar 60
}