Subversion Repositories HelenOS-historic

Rev

Rev 418 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 418 Rev 455
Line 1... Line -...
1
/*
-
 
2
 *  PPC32 linker script
1
/** PPC32 linker script
3
 *
2
 *
4
 *  It is ELF format, but its only section looks like this:
3
 *  It is ELF format, but its only section looks like this:
5
 *  kernel text
4
 *  kernel text
6
 *  kernel data
5
 *  kernel data
7
 *
6
 *
8
 */
7
 */
9
 
8
 
-
 
9
#define __ASM__
-
 
10
 
10
OUTPUT_FORMAT(elf32-powerpc)
11
OUTPUT_FORMAT("elf32-powerpc")
11
ENTRY(kernel_image_start)
12
ENTRY(kernel_image_start)
12
 
13
 
13
SECTIONS {
14
SECTIONS {
14
	.image 0x80000000: AT (0x80000000) { 
15
	.image 0x80000000: AT (0x80000000) { 
15
		ktext_start = .;
16
		ktext_start = .;
Line 33... Line 34...
33
		LONG(0x80000000);
34
		LONG(0x80000000);
34
		*(.bss);		/* uninitialized static variables */	
35
		*(.bss);		/* uninitialized static variables */	
35
		*(COMMON); 		/* global variables */
36
		*(COMMON); 		/* global variables */
36
 
37
 
37
		symbol_table = .;
38
		symbol_table = .;
38
                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
39
		*(symtab.*);            /* Symbol table, must be LAST symbol!*/
39
 
40
 
40
		kdata_end = .;
41
		kdata_end = .;
41
	}
42
	}
42
}
43
}