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_BASE_ADDR;
37 _fdt_start = . ; /* place for fdt blob */
45 __start___ex_table = .;
47 __stop___ex_table = .;
51 * sdata2 section can go anywhere, but must be word aligned
52 * and SDA2_BASE must point to the middle of it
56 . = ALIGN(4096); /* page aligned when MMU used - origin 0x8 */
60 _ssrw_size = _essrw - _ssrw;
61 _KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_size / 2);
65 .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) ;
108 .init.data : { *(.init.data) }
124 __initcall_start = .;
129 .con_initcall.init : {
130 __con_initcall_start = .;
131 *(.con_initcall.init)
132 __con_initcall_end = .;
135 __init_end_before_initramfs = .;
137 .init.ramfs ALIGN(4096) : {
138 __initramfs_start = .;
144 * FIXME this can break initramfs for MMU.
145 * Pad init.ramfs up to page boundary,
146 * so that __init_end == __bss_start. This will make image.elf
147 * consistent with the image.bin
149 /* . = ALIGN(4096); */
153 .bss ALIGN (4096) : { /* page aligned when MMU used */