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 */
69 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
72 /* Reserve some low RAM for r0 based memory references */
75 . = . + 4096; /* a page should be enough */
77 /* The initial task */
79 .data.init_task : { *(.data.init_task) }
81 /* Under the microblaze ABI, .sdata and .sbss must be contiguous */
93 _ssro_size = _essro - _ssro ;
94 _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
124 __initcall_start = .;
129 .con_initcall.init : {
130 __con_initcall_start = .;
131 *(.con_initcall.init)
132 __con_initcall_end = .;
137 __init_end_before_initramfs = .;
139 .init.ramfs ALIGN(4096) : {
140 __initramfs_start = .;
146 * FIXME this can break initramfs for MMU.
147 * Pad init.ramfs up to page boundary,
148 * so that __init_end == __bss_start. This will make image.elf
149 * consistent with the image.bin
151 /* . = ALIGN(4096); */
155 .bss ALIGN (4096) : { /* page aligned when MMU used */