Subversion Repositories HelenOS

Rev

Rev 1787 | 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
 
2225 decky 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);
2225 decky 34
		*(.sbss);
35
		*(.scommon);
36
		*(.bss);		/* uninitialized static variables */
37
		*(COMMON); 		/* global variables */
332 palkovsky 38
		symbol_table = .;
39
		*(symtab.*);             
326 palkovsky 40
	}
41
	_gp = . + 0x8000;
42
	.lit8 : { *(.lit8) }
43
	.lit4 : { *(.lit4) }
329 palkovsky 44
 
326 palkovsky 45
	kdata_end = .;
268 palkovsky 46
 
329 palkovsky 47
	/DISCARD/ : {
48
	  *(.mdebug*);
49
	  *(.pdr);
50
	  *(.comment);
51
	  *(.note);
52
	}
1 jermar 53
}