Subversion Repositories HelenOS

Rev

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

Rev Author Line No. Line
455 decky 1
/** SPARC64 linker script
418 jermar 2
 *
3
 *  It is ELF format, but its only section looks like this:
4377 svoboda 4
 *   kernel text
5
 *   kernel data
418 jermar 6
 *
7
 */
8
 
846 jermar 9
#include <arch/boot/boot.h>
455 decky 10
 
418 jermar 11
ENTRY(kernel_image_start)
12
 
13
SECTIONS {
4377 svoboda 14
	.image VMA: AT (LMA) {
418 jermar 15
		ktext_start = .;
16
		*(K_TEXT_START)
17
		*(.text);
18
		ktext_end = .;
19
 
20
		kdata_start = .;
21
		*(K_DATA_START)
22
		*(.rodata);
23
		*(.rodata.*);
4377 svoboda 24
		*(.data);                   /* initialized data */
418 jermar 25
		*(.sdata);
26
		*(.sdata2);
27
		*(.sbss);
1852 jermar 28
		. = ALIGN(8);
418 jermar 29
		hardcoded_ktext_size = .;
4377 svoboda 30
		QUAD(ktext_end - ktext_start);
418 jermar 31
		hardcoded_kdata_size = .;
820 jermar 32
		QUAD(kdata_end - kdata_start);
418 jermar 33
		hardcoded_load_address = .;
846 jermar 34
		QUAD(VMA);
4377 svoboda 35
		*(.bss);                    /* uninitialized static variables */
36
		*(COMMON);                  /* global variables */
37
 
418 jermar 38
		symbol_table = .;
4377 svoboda 39
		*(symtab.*);                /* Symbol table, must be LAST symbol!*/
40
 
418 jermar 41
		kdata_end = .;
42
	}
420 jermar 43
 
44
	/DISCARD/ : {
1880 jermar 45
		*(*);
420 jermar 46
	}
4377 svoboda 47
 
418 jermar 48
}