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
49 #endif /* CONFIG_PPC32 */
53 PROVIDE32 (etext = .);
59 /* Exception & bug tables */
61 __start___ex_table = .;
63 __stop___ex_table = .;
71 * Init sections discarded at runtime
82 /* .exit.text is discarded at runtime, not link time,
83 * to deal with references from __bug_table
85 .exit.text : { *(.exit.text) }
89 __vtop_table_begin = .;
92 __ptov_table_begin = .;
95 #ifdef CONFIG_PPC_ISERIES
96 __dt_strings_start = .;
110 __initcall_start = .;
115 .con_initcall.init : {
116 __con_initcall_start = .;
117 *(.con_initcall.init)
118 __con_initcall_end = .;
125 __start___ftr_fixup = .;
127 __stop___ftr_fixup = .;
132 __start___fw_ftr_fixup = .;
134 __stop___fw_ftr_fixup = .;
137 #ifdef CONFIG_BLK_DEV_INITRD
138 . = ALIGN(PAGE_SIZE);
140 __initramfs_start = .;
145 . = ALIGN(PAGE_SIZE);
149 *(.data.percpu.shared_aligned)
155 __machine_desc_start = . ;
157 __machine_desc_end = . ;
160 /* freed after init ends here */
161 . = ALIGN(PAGE_SIZE);
165 * And now the various read/write data
168 . = ALIGN(PAGE_SIZE);
197 . = ALIGN(PAGE_SIZE);
199 PROVIDE32 (edata = .);
201 /* The initial task and kernel stack */
211 . = ALIGN(PAGE_SIZE);
212 .data.page_aligned : {
213 *(.data.page_aligned)
216 .data.cacheline_aligned : {
217 *(.data.cacheline_aligned)
220 . = ALIGN(L1_CACHE_BYTES);
221 .data.read_mostly : {
225 . = ALIGN(PAGE_SIZE);
229 . = ALIGN(PAGE_SIZE);
234 * And finally the bss
246 . = ALIGN(PAGE_SIZE);