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
92 __vtop_table_begin = .;
95 __ptov_table_begin = .;
98 #ifdef CONFIG_PPC_ISERIES
99 __dt_strings_start = .;
101 __dt_strings_end = .;
113 __initcall_start = .;
118 .con_initcall.init : {
119 __con_initcall_start = .;
120 *(.con_initcall.init)
121 __con_initcall_end = .;
128 __start___ftr_fixup = .;
130 __stop___ftr_fixup = .;
135 __start___fw_ftr_fixup = .;
137 __stop___fw_ftr_fixup = .;
140 #ifdef CONFIG_BLK_DEV_INITRD
141 . = ALIGN(PAGE_SIZE);
143 __initramfs_start = .;
148 . = ALIGN(PAGE_SIZE);
152 *(.data.percpu.shared_aligned)
158 __machine_desc_start = . ;
160 __machine_desc_end = . ;
163 /* freed after init ends here */
164 . = ALIGN(PAGE_SIZE);
168 * And now the various read/write data
171 . = ALIGN(PAGE_SIZE);
200 . = ALIGN(PAGE_SIZE);
202 PROVIDE32 (edata = .);
204 /* The initial task and kernel stack */
214 . = ALIGN(PAGE_SIZE);
215 .data.page_aligned : {
216 *(.data.page_aligned)
219 .data.cacheline_aligned : {
220 *(.data.cacheline_aligned)
223 . = ALIGN(L1_CACHE_BYTES);
224 .data.read_mostly : {
228 . = ALIGN(PAGE_SIZE);
232 . = ALIGN(PAGE_SIZE);
237 * And finally the bss
249 . = ALIGN(PAGE_SIZE);