source: trunk/packages/xen-3.1/xen-3.1/xen/arch/ia64/xen/xen.lds.S @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 6.3 KB
Line 
1#include <linux/config.h>
2
3#include <asm/cache.h>
4#include <asm/ptrace.h>
5#include <asm/system.h>
6#include <asm/pgtable.h>
7
8#define LOAD_OFFSET     (KERNEL_START - KERNEL_TR_PAGE_SIZE)
9#include <asm-generic/vmlinux.lds.h>
10
11OUTPUT_FORMAT("elf64-ia64-little")
12OUTPUT_ARCH(ia64)
13ENTRY(phys_start)
14jiffies = jiffies_64;
15PHDRS {
16  code   PT_LOAD;
17  percpu PT_LOAD;
18  data   PT_LOAD;
19}
20SECTIONS
21{
22  /* Sections to be discarded */
23  /DISCARD/ : {
24        *(.exit.text)
25        *(.exit.data)
26        *(.exitcall.exit)
27        *(.IA_64.unwind.exit.text)
28        *(.IA_64.unwind_info.exit.text)
29        }
30
31  v = PAGE_OFFSET;      /* this symbol is here to make debugging easier... */
32  phys_start = _start - LOAD_OFFSET;
33
34  code : { } :code
35  . = KERNEL_START;
36
37  _text = .;
38  _stext = .;
39
40  .text : AT(ADDR(.text) - LOAD_OFFSET)
41    {
42        *(.text.ivt)
43        *(.text)
44        SCHED_TEXT
45        LOCK_TEXT
46        *(.gnu.linkonce.t*)
47    }
48  .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
49        { *(.text2) }
50#ifdef CONFIG_SMP
51  .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
52        { *(.text.lock) }
53#endif
54  _etext = .;
55
56  /* Read-only data */
57
58  /* Exception table */
59  . = ALIGN(16);
60  __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
61        {
62          __start___ex_table = .;
63          *(__ex_table)
64          __stop___ex_table = .;
65        }
66
67  .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
68        {
69          __start___vtop_patchlist = .;
70          *(.data.patch.vtop)
71          __end___vtop_patchlist = .;
72        }
73
74  .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
75        {
76          __start___mckinley_e9_bundles = .;
77          *(.data.patch.mckinley_e9)
78          __end___mckinley_e9_bundles = .;
79        }
80
81  /* Global data */
82  _data = .;
83
84#if defined(CONFIG_IA64_GENERIC)
85  /* Machine Vector */
86  . = ALIGN(16);
87  .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
88        {
89          machvec_start = .;
90          *(.machvec)
91          machvec_end = .;
92        }
93#endif
94
95  /* Unwind info & table: */
96  . = ALIGN(8);
97  .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
98        { *(.IA_64.unwind_info*) }
99  .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
100        {
101          __start_unwind = .;
102          *(.IA_64.unwind*)
103          __end_unwind = .;
104        }
105
106  RODATA
107
108  .opd : AT(ADDR(.opd) - LOAD_OFFSET)
109        { *(.opd) }
110
111  /* Initialization code and data: */
112
113  . = ALIGN(PAGE_SIZE);
114  __init_begin = .;
115  .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
116        {
117          _sinittext = .;
118          *(.init.text)
119          _einittext = .;
120        }
121
122  .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
123        { *(.init.data) }
124
125  .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
126        {
127          __initramfs_start = .;
128          *(.init.ramfs)
129          __initramfs_end = .;
130        }
131
132   . = ALIGN(16);
133  .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
134        {
135          __setup_start = .;
136          *(.init.setup)
137          __setup_end = .;
138        }
139  .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
140        {
141          __initcall_start = .;
142          *(.initcall1.init)
143          *(.initcall2.init)
144          *(.initcall3.init)
145          *(.initcall4.init)
146          *(.initcall5.init)
147          *(.initcall6.init)
148          *(.initcall7.init)
149          __initcall_end = .;
150        }
151   __con_initcall_start = .;
152  .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
153        { *(.con_initcall.init) }
154  __con_initcall_end = .;
155  __security_initcall_start = .;
156  .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
157        { *(.security_initcall.init) }
158  __security_initcall_end = .;
159  . = ALIGN(PAGE_SIZE);
160  __init_end = .;
161
162  /* The initial task and kernel stack */
163  .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
164        { *(.data.init_task) }
165
166  .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
167        { *(__special_page_section)
168          __start_gate_section = .;
169          *(.data.gate)
170          __stop_gate_section = .;
171        }
172  . = ALIGN(PAGE_SIZE);         /* make sure the gate page doesn't expose
173                                 * kernel data
174                                 */
175
176  .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
177        { *(.data.read_mostly) }
178
179  .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
180        { *(.data.cacheline_aligned) }
181
182  /* Per-cpu data: */
183  percpu : { } :percpu
184  . = ALIGN(PERCPU_PAGE_SIZE);
185  __phys_per_cpu_start = .;
186  .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
187        {
188                __per_cpu_start = .;
189                *(.data.percpu)
190                __per_cpu_end = .;
191        }
192  . = __phys_per_cpu_start + PERCPU_PAGE_SIZE;  /* ensure percpu data fits
193                                                 * into percpu page size
194                                                 */
195
196  data : { } :data
197  .data : AT(ADDR(.data) - LOAD_OFFSET)
198        { *(.data) *(.data1) *(.gnu.linkonce.d*) CONSTRUCTORS }
199
200  . = ALIGN(16);        /* gp must be 16-byte aligned for exc. table */
201  .got : AT(ADDR(.got) - LOAD_OFFSET)
202        { *(.got.plt) *(.got) }
203  __gp = ADDR(.got) + 0x200000;
204  /* We want the small data sections together, so single-instruction offsets
205     can access them all, and initialized data all before uninitialized, so
206     we can shorten the on-disk segment size.  */
207  .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
208        { *(.sdata) *(.sdata1) *(.srdata) }
209  _edata  =  .;
210  _bss = .;
211  .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
212        { *(.sbss) *(.scommon) }
213  .bss : AT(ADDR(.bss) - LOAD_OFFSET)
214        { *(.bss) *(COMMON) }
215
216  _end = .;
217
218  code : { } :code
219  /* Stabs debugging sections.  */
220  .stab 0 : { *(.stab) }
221  .stabstr 0 : { *(.stabstr) }
222  .stab.excl 0 : { *(.stab.excl) }
223  .stab.exclstr 0 : { *(.stab.exclstr) }
224  .stab.index 0 : { *(.stab.index) }
225  .stab.indexstr 0 : { *(.stab.indexstr) }
226  /* DWARF debug sections.
227     Symbols in the DWARF debugging sections are relative to the beginning
228     of the section so we begin them at 0.  */
229  /* DWARF 1 */
230  .debug          0 : { *(.debug) }
231  .line           0 : { *(.line) }
232  /* GNU DWARF 1 extensions */
233  .debug_srcinfo  0 : { *(.debug_srcinfo) }
234  .debug_sfnames  0 : { *(.debug_sfnames) }
235  /* DWARF 1.1 and DWARF 2 */
236  .debug_aranges  0 : { *(.debug_aranges) }
237  .debug_pubnames 0 : { *(.debug_pubnames) }
238  /* DWARF 2 */
239  .debug_info     0 : { *(.debug_info) }
240  .debug_abbrev   0 : { *(.debug_abbrev) }
241  .debug_line     0 : { *(.debug_line) }
242  .debug_frame    0 : { *(.debug_frame) }
243  .debug_str      0 : { *(.debug_str) }
244  .debug_loc      0 : { *(.debug_loc) }
245  .debug_macinfo  0 : { *(.debug_macinfo) }
246  /* SGI/MIPS DWARF 2 extensions */
247  .debug_weaknames 0 : { *(.debug_weaknames) }
248  .debug_funcnames 0 : { *(.debug_funcnames) }
249  .debug_typenames 0 : { *(.debug_typenames) }
250  .debug_varnames  0 : { *(.debug_varnames) }
251  /* These must appear regardless of  .  */
252  /* Discard them for now since Intel SoftSDV cannot handle them.
253  .comment 0 : { *(.comment) }
254  .note 0 : { *(.note) }
255  */
256  /DISCARD/ : { *(.comment) }
257  /DISCARD/ : { *(.note) }
258}
Note: See TracBrowser for help on using the repository browser.