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 = .;
69 * Init sections discarded at runtime
80 /* .exit.text is discarded at runtime, not link time,
81 * to deal with references from __bug_table
83 .exit.text : { *(.exit.text) }
87 __vtop_table_begin = .;
90 __ptov_table_begin = .;
93 #ifdef CONFIG_PPC_ISERIES
94 __dt_strings_start = .;
108 __initcall_start = .;
113 .con_initcall.init : {
114 __con_initcall_start = .;
115 *(.con_initcall.init)
116 __con_initcall_end = .;
123 __start___ftr_fixup = .;
125 __stop___ftr_fixup = .;
130 __start___fw_ftr_fixup = .;
132 __stop___fw_ftr_fixup = .;
135 #ifdef CONFIG_BLK_DEV_INITRD
136 . = ALIGN(PAGE_SIZE);
138 __initramfs_start = .;
143 . = ALIGN(PAGE_SIZE);
152 __machine_desc_start = . ;
154 __machine_desc_end = . ;
157 /* freed after init ends here */
158 . = ALIGN(PAGE_SIZE);
162 * And now the various read/write data
165 . = ALIGN(PAGE_SIZE);
177 *(.data .data.rel* .toc1)
192 . = ALIGN(PAGE_SIZE);
194 PROVIDE32 (edata = .);
196 /* The initial task and kernel stack */
206 . = ALIGN(PAGE_SIZE);
207 .data.page_aligned : {
208 *(.data.page_aligned)
211 .data.cacheline_aligned : {
212 *(.data.cacheline_aligned)
215 . = ALIGN(L1_CACHE_BYTES);
216 .data.read_mostly : {
220 . = ALIGN(PAGE_SIZE);
224 . = ALIGN(PAGE_SIZE);
229 * And finally the bss
241 . = ALIGN(PAGE_SIZE);