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 #include <asm/thread_info.h>
19 jiffies = jiffies_64 + 4;
22 . = CONFIG_KERNEL_START;
38 _fdt_start = . ; /* place for fdt blob */
47 * sdata2 section can go anywhere, but must be word aligned
48 * and SDA2_BASE must point to the middle of it
52 . = ALIGN(4096); /* page aligned when MMU used - origin 0x8 */
56 _ssrw_size = _essrw - _ssrw;
57 _KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_size / 2);
61 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
64 /* Reserve some low RAM for r0 based memory references */
67 . = . + 4096; /* a page should be enough */
69 /* Under the microblaze ABI, .sdata and .sbss must be contiguous */
81 _ssro_size = _essro - _ssro ;
82 _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
87 INIT_TEXT_SECTION(PAGE_SIZE)
108 .con_initcall.init : {
114 __init_end_before_initramfs = .;
116 .init.ramfs ALIGN(4096) : {
117 __initramfs_start = .;
123 * FIXME this can break initramfs for MMU.
124 * Pad init.ramfs up to page boundary,
125 * so that __init_end == __bss_start. This will make image.elf
126 * consistent with the image.bin
128 /* . = ALIGN(4096); */
132 .bss ALIGN (4096) : { /* page aligned when MMU used */