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 = .;
106 __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 = .;
132 . = ALIGN(PAGE_SIZE);
134 __initramfs_start = .;
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(PAGE_SIZE);
219 . = ALIGN(PAGE_SIZE);
224 * And finally the bss
236 . = ALIGN(PAGE_SIZE);