2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2008-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
11 OUTPUT_FORMAT("elf32-microblaze", "elf32-microblaze", "elf32-microblaze")
12 OUTPUT_ARCH(microblaze)
15 #include <asm-generic/vmlinux.lds.h>
17 jiffies = jiffies_64 + 4;
20 . = CONFIG_KERNEL_START;
36 _fdt_start = . ; /* place for fdt blob */
44 __start___ex_table = .;
46 __stop___ex_table = .;
50 * sdata2 section can go anywhere, but must be word aligned
51 * and SDA2_BASE must point to the middle of it
55 . = ALIGN(4096); /* page aligned when MMU used - origin 0x8 */
59 _ssrw_size = _essrw - _ssrw;
60 _KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_size / 2);
64 .data ALIGN (4096) : { /* page aligned when MMU used - origin 0x4 */
68 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
71 /* Reserve some low RAM for r0 based memory references */
74 . = . + 4096; /* a page should be enough */
76 /* The initial task */
78 .data.init_task : { *(.data.init_task) }
80 /* Under the microblaze ABI, .sdata and .sbss must be contiguous */
92 _ssro_size = _essro - _ssro ;
93 _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
107 .init.data : { *(.init.data) }
123 __initcall_start = .;
128 .con_initcall.init : {
129 __con_initcall_start = .;
130 *(.con_initcall.init)
131 __con_initcall_end = .;
136 __init_end_before_initramfs = .;
138 .init.ramfs ALIGN(4096) : {
139 __initramfs_start = .;
145 * FIXME this can break initramfs for MMU.
146 * Pad init.ramfs up to page boundary,
147 * so that __init_end == __bss_start. This will make image.elf
148 * consistent with the image.bin
150 /* . = ALIGN(4096); */
154 .bss ALIGN (4096) : { /* page aligned when MMU used */