Subversion Repositories HelenOS

Rev

Rev 1953 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1953 jermar 1
/** ia32xen linker script
1804 decky 2
 */
3
 
4
#define __ASM__
1810 decky 5
#include <arch/boot/boot.h>
1804 decky 6
#include <arch/mm/page.h>
7
 
1809 decky 8
ENTRY(kernel_image_start)
9
 
2014 decky 10
PHDRS {
11
	image PT_LOAD FLAGS(7);	/* RWE */
12
	note PT_NOTE FLAGS(4);	/* R__ */
13
}
14
 
1804 decky 15
SECTIONS {
2014 decky 16
	.image PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) {
1804 decky 17
		ktext_start = .;
1816 decky 18
		*(K_TEXT_START);
1804 decky 19
		*(.text);
20
		ktext_end = .;
21
 
22
		kdata_start = .;
23
		*(.data);			/* initialized data */
24
		*(.rodata*);			/* string literals */
25
		*(COMMON);			/* global variables */
26
		hardcoded_load_address = .;
1806 decky 27
		LONG(PA2KA(0));
1804 decky 28
		hardcoded_ktext_size = .;
1806 decky 29
		LONG(ktext_end - ktext_start);
1804 decky 30
		hardcoded_kdata_size = .;
1806 decky 31
		LONG(kdata_end - kdata_start);
1804 decky 32
		symbol_table = .;
33
		*(symtab.*);            	/* Symbol table, must be LAST symbol! */
34
		*(.bss);			/* uninitialized static variables */
35
		kdata_end = .;
2014 decky 36
	} :image
37
 
38
	.notes : {
39
		*(.note.Xen);
40
	} :note
1804 decky 41
 
42
	/DISCARD/ : {
43
		*(.note.GNU-stack);		
44
		*(.comment);
45
	}
46
}