Subversion Repositories HelenOS

Rev

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