2 #define PROVIDE32(x) PROVIDE(__unused__##x)
4 #define PROVIDE32(x) PROVIDE(x)
7 #include <asm-generic/vmlinux.lds.h>
13 OUTPUT_ARCH(powerpc:common64)
16 OUTPUT_ARCH(powerpc:common)
17 jiffies = jiffies_64 + 4;
21 /* Sections to be discarded. */
30 * Text, read only data and other permanent read-only sections
34 .text : AT(ADDR(.text) - LOAD_OFFSET) {
38 *(.text .fixup .text.init.refok .exit.text.refok)
48 #endif /* CONFIG_PPC32 */
52 PROVIDE32 (etext = .);
58 /* Exception & bug tables */
59 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
60 __start___ex_table = .;
62 __stop___ex_table = .;
70 * Init sections discarded at runtime
75 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) {
81 /* .exit.text is discarded at runtime, not link time,
82 * to deal with references from __bug_table
84 .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) {
88 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {
90 __vtop_table_begin = .;
93 __ptov_table_begin = .;
96 #ifdef CONFIG_PPC_ISERIES
97 __dt_strings_start = .;
104 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) {
110 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET) {
111 __initcall_start = .;
116 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {
117 __con_initcall_start = .;
118 *(.con_initcall.init)
119 __con_initcall_end = .;
125 __ftr_fixup : AT(ADDR(__ftr_fixup) - LOAD_OFFSET) {
126 __start___ftr_fixup = .;
128 __stop___ftr_fixup = .;
132 __fw_ftr_fixup : AT(ADDR(__fw_ftr_fixup) - LOAD_OFFSET) {
133 __start___fw_ftr_fixup = .;
135 __stop___fw_ftr_fixup = .;
138 #ifdef CONFIG_BLK_DEV_INITRD
139 . = ALIGN(PAGE_SIZE);
140 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
141 __initramfs_start = .;
146 . = ALIGN(PAGE_SIZE);
147 .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) {
150 *(.data.percpu.shared_aligned)
155 .machine.desc : AT(ADDR(.machine.desc) - LOAD_OFFSET) {
156 __machine_desc_start = . ;
158 __machine_desc_end = . ;
161 /* freed after init ends here */
162 . = ALIGN(PAGE_SIZE);
166 * And now the various read/write data
169 . = ALIGN(PAGE_SIZE);
173 .data : AT(ADDR(.data) - LOAD_OFFSET) {
179 .data : AT(ADDR(.data) - LOAD_OFFSET) {
186 .opd : AT(ADDR(.opd) - LOAD_OFFSET) {
190 .got : AT(ADDR(.got) - LOAD_OFFSET) {
197 . = ALIGN(PAGE_SIZE);
199 PROVIDE32 (edata = .);
201 /* The initial task and kernel stack */
207 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) {
211 . = ALIGN(PAGE_SIZE);
212 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) {
213 *(.data.page_aligned)
216 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) {
217 *(.data.cacheline_aligned)
220 . = ALIGN(L1_CACHE_BYTES);
221 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) {
225 . = ALIGN(PAGE_SIZE);
226 .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) {
229 . = ALIGN(PAGE_SIZE);
234 * And finally the bss
237 .bss : AT(ADDR(.bss) - LOAD_OFFSET) {
246 . = ALIGN(PAGE_SIZE);