3 #define PROVIDE32(x) PROVIDE(__unused__##x)
6 #define KERNELBASE CONFIG_KERNEL_START
7 #define PROVIDE32(x) PROVIDE(x)
9 #include <asm-generic/vmlinux.lds.h>
10 #include <asm/cache.h>
15 OUTPUT_ARCH(powerpc:common64)
18 OUTPUT_ARCH(powerpc:common)
19 jiffies = jiffies_64 + 4;
23 /* Sections to be discarded. */
32 * Text, read only data and other permanent read-only sections
40 *(.text .fixup .text.init.refok .exit.text.refok)
50 #endif /* CONFIG_PPC32 */
54 PROVIDE32 (etext = .);
60 /* Exception & bug tables */
62 __start___ex_table = .;
64 __stop___ex_table = .;
72 * Init sections discarded at runtime
83 /* .exit.text is discarded at runtime, not link time,
84 * to deal with references from __bug_table
86 .exit.text : { *(.exit.text) }
90 __vtop_table_begin = .;
93 __ptov_table_begin = .;
96 #ifdef CONFIG_PPC_ISERIES
97 __dt_strings_start = .;
111 __initcall_start = .;
116 .con_initcall.init : {
117 __con_initcall_start = .;
118 *(.con_initcall.init)
119 __con_initcall_end = .;
126 __start___ftr_fixup = .;
128 __stop___ftr_fixup = .;
133 __start___fw_ftr_fixup = .;
135 __stop___fw_ftr_fixup = .;
138 #ifdef CONFIG_BLK_DEV_INITRD
139 . = ALIGN(PAGE_SIZE);
141 __initramfs_start = .;
146 . = ALIGN(PAGE_SIZE);
150 *(.data.percpu.shared_aligned)
156 __machine_desc_start = . ;
158 __machine_desc_end = . ;
161 /* freed after init ends here */
162 . = ALIGN(PAGE_SIZE);
166 * And now the various read/write data
169 . = ALIGN(PAGE_SIZE);
198 . = ALIGN(PAGE_SIZE);
200 PROVIDE32 (edata = .);
202 /* The initial task and kernel stack */
212 . = ALIGN(PAGE_SIZE);
213 .data.page_aligned : {
214 *(.data.page_aligned)
217 .data.cacheline_aligned : {
218 *(.data.cacheline_aligned)
221 . = ALIGN(L1_CACHE_BYTES);
222 .data.read_mostly : {
226 . = ALIGN(PAGE_SIZE);
230 . = ALIGN(PAGE_SIZE);
235 * And finally the bss
247 . = ALIGN(PAGE_SIZE);