1/*
2 * realmode.lds.S
3 *
4 * Linker script for the real-mode code
5 */
6
7#include <asm/page_types.h>
8
9#undef i386
10
11OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
12OUTPUT_ARCH(i386)
13
14SECTIONS
15{
16	real_mode_seg = 0;
17
18	. = 0;
19	.header : {
20		pa_real_mode_base = .;
21		*(.header)
22	}
23
24	. = ALIGN(4);
25	.rodata : {
26		*(.rodata)
27		*(.rodata.*)
28		. = ALIGN(16);
29		video_cards = .;
30		*(.videocards)
31		video_cards_end = .;
32	}
33
34	. = ALIGN(PAGE_SIZE);
35	.text : {
36		pa_text_start = .;
37		*(.text)
38		*(.text.*)
39	}
40
41	.text32 : {
42		*(.text32)
43		*(.text32.*)
44		pa_ro_end = .;
45	}
46
47	. = ALIGN(PAGE_SIZE);
48	.data : {
49		*(.data)
50		*(.data.*)
51	}
52
53	. = ALIGN(128);
54	.bss : {
55		*(.bss*)
56	}
57
58	/* End signature for integrity checking */
59	. = ALIGN(4);
60	.signature : {
61		*(.signature)
62		pa_end = .;
63	}
64
65	/DISCARD/ : {
66		*(.note*)
67		*(.debug*)
68		*(.eh_frame*)
69	}
70
71#include "pasyms.h"
72}
73