Subversion Repositories HelenOS

Rev

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

Rev Author Line No. Line
1 jermar 1
/*
2
 *  MIPS linker script
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_FORMAT(BFD)
324 palkovsky 12
 
326 palkovsky 13
OUTPUT_ARCH(mips)
14
 
111 palkovsky 15
ENTRY(kernel_image_start) 
1 jermar 16
 
17
SECTIONS {
329 palkovsky 18
	. = KERNEL_LOAD_ADDRESS;
326 palkovsky 19
	.text : {
106 jermar 20
		ktext_start = .;
21
		*(.text);
22
		ktext_end = .;
326 palkovsky 23
	}
24
	.data : {
106 jermar 25
		kdata_start = .;
26
		*(.data);		/* initialized data */
216 palkovsky 27
		hardcoded_ktext_size = .;
28
		LONG(ktext_end - ktext_start);	
29
		hardcoded_kdata_size = .;
30
		LONG(kdata_end - kdata_start);
31
		hardcoded_load_address = .;
329 palkovsky 32
		LONG(KERNEL_LOAD_ADDRESS);
33
		*(.rodata*);
34
		*(.sdata);
35
		*(.reginfo);
326 palkovsky 36
	}
37
	_gp = . + 0x8000;
38
	.lit8 : { *(.lit8) }
39
	.lit4 : { *(.lit4) }
40
	.sbss : {
41
		*(.sbss);
106 jermar 42
		*(.scommon);
326 palkovsky 43
	}
44
	.bss : {
45
		*(.bss);		/* uninitialized static variables */
106 jermar 46
		*(COMMON); 		/* global variables */
326 palkovsky 47
	}
329 palkovsky 48
 
49
	mysymtab : {
268 palkovsky 50
		symbol_table = .;
329 palkovsky 51
		*(symtab.*);             /* Symbol table, must be LAST symbol!*/
326 palkovsky 52
	}
53
	kdata_end = .;
268 palkovsky 54
 
329 palkovsky 55
	/DISCARD/ : {
56
	  *(.mdebug*);
57
	  *(.pdr);
58
	  *(.comment);
59
	  *(.note);
60
	}
1 jermar 61
}