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)
16 #include <asm-generic/vmlinux.lds.h>
17 #include <asm/thread_info.h>
19 jiffies = jiffies_64 + 4;
22 . = CONFIG_KERNEL_START;
23 _start = CONFIG_KERNEL_BASE_ADDR;
24 .text : AT(ADDR(.text) - LOAD_OFFSET) {
40 __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET) {
41 _fdt_start = . ; /* place for fdt blob */
42 *(__fdt_blob) ; /* Any link-placed DTB */
43 . = _fdt_start + 0x4000; /* Pad up to 16kbyte */
52 * sdata2 section can go anywhere, but must be word aligned
53 * and SDA2_BASE must point to the middle of it
55 .sdata2 : AT(ADDR(.sdata2) - LOAD_OFFSET) {
57 . = ALIGN(4096); /* page aligned when MMU used - origin 0x8 */
61 _ssrw_size = _essrw - _ssrw;
62 _KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_size / 2);
66 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
69 /* Reserve some low RAM for r0 based memory references */
72 . = . + 4096; /* a page should be enough */
74 /* Under the microblaze ABI, .sdata and .sbss must be contiguous */
76 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {
81 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET) {
86 _ssro_size = _essro - _ssro ;
87 _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
93 INIT_TEXT_SECTION(PAGE_SIZE)
95 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {
100 .init.ivt : AT(ADDR(.init.ivt) - LOAD_OFFSET) {
106 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) {
110 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET ) {
114 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {
120 __init_end_before_initramfs = .;
122 .init.ramfs ALIGN(4096) : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
123 __initramfs_start = .;
129 * FIXME this can break initramfs for MMU.
130 * Pad init.ramfs up to page boundary,
131 * so that __init_end == __bss_start. This will make image.elf
132 * consistent with the image.bin
134 /* . = ALIGN(4096); */
138 .bss ALIGN (4096) : AT(ADDR(.bss) - LOAD_OFFSET) {
139 /* page aligned when MMU used */