Subversion Repositories HelenOS

Rev

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

Rev Author Line No. Line
1 jermar 1
/*
4153 mejdrech 2
 * MIPS32 linker script
3
 *
1 jermar 4
 *  kernel text
5
 *  kernel data
4153 mejdrech 6
 *
1 jermar 7
 */
4153 mejdrech 8
 
326 palkovsky 9
#undef mips
10
#define mips mips
1 jermar 11
 
4153 mejdrech 12
#define KERNEL_LOAD_ADDRESS 0x80100000
13
 
326 palkovsky 14
OUTPUT_ARCH(mips)
2225 decky 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 = .;
4153 mejdrech 26
		*(.data);                       /* initialized data */
216 palkovsky 27
		hardcoded_ktext_size = .;
4153 mejdrech 28
		LONG(ktext_end - ktext_start);
216 palkovsky 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);
2225 decky 36
		*(.sbss);
37
		*(.scommon);
4153 mejdrech 38
		*(.bss);                        /* uninitialized static variables */
39
		*(COMMON);                      /* global variables */
332 palkovsky 40
		symbol_table = .;
4153 mejdrech 41
		*(symtab.*);
326 palkovsky 42
	}
43
	_gp = . + 0x8000;
44
	.lit8 : { *(.lit8) }
45
	.lit4 : { *(.lit4) }
4153 mejdrech 46
 
326 palkovsky 47
	kdata_end = .;
4153 mejdrech 48
 
329 palkovsky 49
	/DISCARD/ : {
4153 mejdrech 50
		*(.mdebug*);
51
		*(.pdr);
52
		*(.comment);
53
		*(.note);
329 palkovsky 54
	}
1 jermar 55
}