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
51 #endif /* CONFIG_PPC32 */
55 PROVIDE32 (etext = .);
61 /* Exception & bug tables */
63 __start___ex_table = .;
65 __stop___ex_table = .;
73 * Init sections discarded at runtime
84 /* .exit.text is discarded at runtime, not link time,
85 * to deal with references from __bug_table
87 .exit.text : { *(.exit.text) }
91 __vtop_table_begin = .;
94 __ptov_table_begin = .;
97 #ifdef CONFIG_PPC_ISERIES
98 __dt_strings_start = .;
100 __dt_strings_end = .;
112 __initcall_start = .;
117 .con_initcall.init : {
118 __con_initcall_start = .;
119 *(.con_initcall.init)
120 __con_initcall_end = .;
127 __start___ftr_fixup = .;
129 __stop___ftr_fixup = .;
134 __start___fw_ftr_fixup = .;
136 __stop___fw_ftr_fixup = .;
139 #ifdef CONFIG_BLK_DEV_INITRD
140 . = ALIGN(PAGE_SIZE);
142 __initramfs_start = .;
147 . = ALIGN(PAGE_SIZE);
151 *(.data.percpu.shared_aligned)
157 __machine_desc_start = . ;
159 __machine_desc_end = . ;
162 /* freed after init ends here */
163 . = ALIGN(PAGE_SIZE);
167 * And now the various read/write data
170 . = ALIGN(PAGE_SIZE);
199 . = ALIGN(PAGE_SIZE);
201 PROVIDE32 (edata = .);
203 /* The initial task and kernel stack */
213 . = ALIGN(PAGE_SIZE);
214 .data.page_aligned : {
215 *(.data.page_aligned)
218 .data.cacheline_aligned : {
219 *(.data.cacheline_aligned)
222 . = ALIGN(L1_CACHE_BYTES);
223 .data.read_mostly : {
227 . = ALIGN(PAGE_SIZE);
231 . = ALIGN(PAGE_SIZE);
236 * And finally the bss
248 . = ALIGN(PAGE_SIZE);