Import 2.4.0-test4pre2
[davej-history.git] / arch / ia64 / vmlinux.lds.S
blob0e2dc7aaaf1c4d651ca18e6ade2894bca2b71415
1 #include <linux/config.h>
3 #include <asm/page.h>
4 #include <asm/system.h>
6 OUTPUT_FORMAT("elf64-ia64-little")
7 OUTPUT_ARCH(ia64)
8 ENTRY(_start)
9 SECTIONS
11   v = PAGE_OFFSET;      /* this symbol is here to make debugging easier... */
13   . = KERNEL_START;
15   _text = .;
16   _stext = .;
17   .text : AT(ADDR(.text) - PAGE_OFFSET)
18     {
19         *(__ivt_section)
20         /* these are not really text pages, but the zero page needs to be in a fixed location: */
21         *(__special_page_section)
22         __start_gate_section = .;
23         *(__gate_section)
24         __stop_gate_section = .;
25         *(.text)
26     }
27   .text2 : AT(ADDR(.text2) - PAGE_OFFSET)
28         { *(.text2) }
29 #ifdef CONFIG_SMP
30   .text.lock : AT(ADDR(.text.lock) - PAGE_OFFSET)
31         { *(.text.lock) }
32 #endif
33   _etext = .;
35   /* Read-only data */
37   __gp = ALIGN(8) + 0x200000;
39   /* Global data */
40   _data = .;
42   /* Exception table */
43   . = ALIGN(16);
44   __start___ex_table = .;
45   __ex_table : AT(ADDR(__ex_table) - PAGE_OFFSET)
46         { *(__ex_table) }
47   __stop___ex_table = .;
49   __start___ksymtab = .;        /* Kernel symbol table */
50   __ksymtab : AT(ADDR(__ksymtab) - PAGE_OFFSET)
51         { *(__ksymtab) }
52   __stop___ksymtab = .;
54   /* Unwind table */
55   ia64_unw_start = .;
56   .IA_64.unwind : AT(ADDR(.IA_64.unwind) - PAGE_OFFSET)
57         { *(.IA_64.unwind) }
58   ia64_unw_end = .;
59   .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - PAGE_OFFSET)
60         { *(.IA_64.unwind_info) }
62   .rodata : AT(ADDR(.rodata) - PAGE_OFFSET)
63         { *(.rodata) }
64   .kstrtab : AT(ADDR(.kstrtab) - PAGE_OFFSET)
65         { *(.kstrtab) }
66   .opd : AT(ADDR(.opd) - PAGE_OFFSET)
67         { *(.opd) }
69   /* Initialization code and data: */
71   . = ALIGN(PAGE_SIZE);
72   __init_begin = .;
73   .text.init : AT(ADDR(.text.init) - PAGE_OFFSET)
74         { *(.text.init) }
76   .data.init : AT(ADDR(.data.init) - PAGE_OFFSET)
77         { *(.data.init) }
78    . = ALIGN(16);
79   __setup_start = .;
80   .setup.init : AT(ADDR(.setup.init) - PAGE_OFFSET)
81         { *(.setup.init) }
82   __setup_end = .;
83   __initcall_start = .;
84   .initcall.init : AT(ADDR(.initcall.init) - PAGE_OFFSET)
85         { *(.initcall.init) }
86   __initcall_end = .;
87   . = ALIGN(PAGE_SIZE);
88   __init_end = .;
90   /* The initial task and kernel stack */
91   init_task : AT(ADDR(init_task) - PAGE_OFFSET)
92         { *(init_task) }
94   .data.page_aligned : AT(ADDR(.data.page_aligned) - PAGE_OFFSET)
95         { *(.data.idt) }
97   . = ALIGN(64);
98   .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - PAGE_OFFSET)
99         { *(.data.cacheline_aligned) }
101   /* Kernel symbol names for modules: */
102   .kstrtab : AT(ADDR(.kstrtab) - PAGE_OFFSET)
103         { *(.kstrtab) }
105   .data : AT(ADDR(.data) - PAGE_OFFSET)
106         { *(.data) *(.gnu.linkonce.d*) CONSTRUCTORS }
108   .got : AT(ADDR(.got) - PAGE_OFFSET)
109         { *(.got.plt) *(.got) }
110   /* We want the small data sections together, so single-instruction offsets
111      can access them all, and initialized data all before uninitialized, so
112      we can shorten the on-disk segment size.  */
113   .sdata : AT(ADDR(.sdata) - PAGE_OFFSET)
114         { *(.sdata) }
115   _edata  =  .;
116   _bss = .;
117   .sbss : AT(ADDR(.sbss) - PAGE_OFFSET)
118         { *(.sbss) *(.scommon) }
119   .bss : AT(ADDR(.bss) - PAGE_OFFSET)
120         { *(.bss) *(COMMON) }
121   . = ALIGN(64 / 8);
122   _end = .;
124   /* Sections to be discarded */
125   /DISCARD/ : {
126         *(.text.exit)
127         *(.data.exit)
128         }
130   /* Stabs debugging sections.  */
131   .stab 0 : { *(.stab) }
132   .stabstr 0 : { *(.stabstr) }
133   .stab.excl 0 : { *(.stab.excl) }
134   .stab.exclstr 0 : { *(.stab.exclstr) }
135   .stab.index 0 : { *(.stab.index) }
136   .stab.indexstr 0 : { *(.stab.indexstr) }
137   /* DWARF debug sections.
138      Symbols in the DWARF debugging sections are relative to the beginning
139      of the section so we begin them at 0.  */
140   /* DWARF 1 */
141   .debug          0 : { *(.debug) }
142   .line           0 : { *(.line) }
143   /* GNU DWARF 1 extensions */
144   .debug_srcinfo  0 : { *(.debug_srcinfo) }
145   .debug_sfnames  0 : { *(.debug_sfnames) }
146   /* DWARF 1.1 and DWARF 2 */
147   .debug_aranges  0 : { *(.debug_aranges) }
148   .debug_pubnames 0 : { *(.debug_pubnames) }
149   /* DWARF 2 */
150   .debug_info     0 : { *(.debug_info) }
151   .debug_abbrev   0 : { *(.debug_abbrev) }
152   .debug_line     0 : { *(.debug_line) }
153   .debug_frame    0 : { *(.debug_frame) }
154   .debug_str      0 : { *(.debug_str) }
155   .debug_loc      0 : { *(.debug_loc) }
156   .debug_macinfo  0 : { *(.debug_macinfo) }
157   /* SGI/MIPS DWARF 2 extensions */
158   .debug_weaknames 0 : { *(.debug_weaknames) }
159   .debug_funcnames 0 : { *(.debug_funcnames) }
160   .debug_typenames 0 : { *(.debug_typenames) }
161   .debug_varnames  0 : { *(.debug_varnames) }
162   /* These must appear regardless of  .  */
163   /* Discard them for now since Intel SoftSDV cannot handle them.
164   .comment 0 : { *(.comment) }
165   .note 0 : { *(.note) }
166   */
167   /DISCARD/ : { *(.comment) }
168   /DISCARD/ : { *(.note) }