1 #include <linux/config.h>
4 #define PROVIDE32(x) PROVIDE(__unused__##x)
7 #define KERNELBASE CONFIG_KERNEL_START
8 #define PROVIDE32(x) PROVIDE(x)
10 #include <asm-generic/vmlinux.lds.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
48 #endif /* CONFIG_PPC32 */
52 PROVIDE32 (etext = .);
58 /* Exception & bug tables */
60 __start___ex_table = .;
62 __stop___ex_table = .;
66 __start___bug_table = .;
68 __stop___bug_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 = .;
122 .con_initcall.init : {
123 __con_initcall_start = .;
124 *(.con_initcall.init)
125 __con_initcall_end = .;
132 __start___ftr_fixup = .;
134 __stop___ftr_fixup = .;
137 . = ALIGN(PAGE_SIZE);
139 __initramfs_start = .;
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);
182 *(.data .data.rel* .toc1)
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(PAGE_SIZE);
224 . = ALIGN(PAGE_SIZE);
229 * And finally the bss
241 . = ALIGN(PAGE_SIZE);