1 /* !! 1 #if defined(CONFIG_MMU) && !defined(CONFIG_COLDFIRE) 2 * Copyright (C) 2008-2009 Michal Simek <monstr !! 2 PHDRS 3 * Copyright (C) 2008-2009 PetaLogix !! 3 { 4 * Copyright (C) 2006 Atmark Techno, Inc. !! 4 text PT_LOAD FILEHDR PHDRS FLAGS (7); 5 * !! 5 data PT_LOAD FLAGS (7); 6 * This file is subject to the terms and condi !! 6 } 7 * License. See the file "COPYING" in the main !! 7 #ifdef CONFIG_SUN3 8 * for more details. !! 8 #include "vmlinux-sun3.lds" 9 */ << 10 << 11 OUTPUT_ARCH(microblaze) << 12 ENTRY(microblaze_start) << 13 << 14 #define RO_EXCEPTION_TABLE_ALIGN 16 << 15 << 16 #include <asm/cache.h> << 17 #include <asm/page.h> << 18 #include <asm-generic/vmlinux.lds.h> << 19 #include <asm/thread_info.h> << 20 << 21 #ifdef __MICROBLAZEEL__ << 22 jiffies = jiffies_64; << 23 #else 9 #else 24 jiffies = jiffies_64 + 4; !! 10 #include "vmlinux-std.lds" >> 11 #endif >> 12 #else >> 13 #include "vmlinux-nommu.lds" 25 #endif 14 #endif 26 << 27 SECTIONS { << 28 . = CONFIG_KERNEL_START; << 29 microblaze_start = CONFIG_KERNEL_BASE_ << 30 .text : AT(ADDR(.text) - LOAD_OFFSET) << 31 _text = . ; << 32 _stext = . ; << 33 HEAD_TEXT << 34 TEXT_TEXT << 35 *(.fixup) << 36 EXIT_TEXT << 37 EXIT_CALL << 38 SCHED_TEXT << 39 LOCK_TEXT << 40 KPROBES_TEXT << 41 IRQENTRY_TEXT << 42 SOFTIRQENTRY_TEXT << 43 . = ALIGN (4) ; << 44 _etext = . ; << 45 } << 46 << 47 . = ALIGN (8) ; << 48 __fdt_blob : AT(ADDR(__fdt_blob) - LOA << 49 _fdt_start = . ; << 50 *(__fdt_blob) ; << 51 . = _fdt_start + 0x10000; << 52 _fdt_end = . ; << 53 } << 54 << 55 . = ALIGN(16); << 56 RO_DATA(4096) << 57 << 58 /* << 59 * sdata2 section can go anywhere, but << 60 * and SDA2_BASE must point to the mid << 61 */ << 62 .sdata2 : AT(ADDR(.sdata2) - LOAD_OFFS << 63 _ssrw = .; << 64 . = ALIGN(PAGE_SIZE); /* page << 65 *(.sdata2) << 66 . = ALIGN(8); << 67 _essrw = .; << 68 _ssrw_size = _essrw - _ssrw; << 69 _KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_si << 70 } << 71 << 72 _sdata = . ; << 73 RW_DATA(32, PAGE_SIZE, THREAD_SIZE) << 74 _edata = . ; << 75 << 76 /* Under the microblaze ABI, .sdata an << 77 . = ALIGN(8); << 78 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET << 79 _ssro = .; << 80 *(.sdata) << 81 } << 82 << 83 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET) << 84 _ssbss = .; << 85 *(.sbss) << 86 _esbss = .; << 87 _essro = .; << 88 _ssro_size = _essro - _ssro ; << 89 _KERNEL_SDA_BASE_ = _ssro + (_ << 90 } << 91 << 92 PERCPU_SECTION(L1_CACHE_BYTES) << 93 << 94 . = ALIGN(PAGE_SIZE); << 95 __init_begin = .; << 96 << 97 INIT_TEXT_SECTION(PAGE_SIZE) << 98 << 99 .init.data : AT(ADDR(.init.data) - LOA << 100 INIT_DATA << 101 } << 102 << 103 . = ALIGN(4); << 104 .init.ivt : AT(ADDR(.init.ivt) - LOAD_ << 105 __ivt_start = .; << 106 *(.init.ivt) << 107 __ivt_end = .; << 108 } << 109 << 110 .init.setup : AT(ADDR(.init.setup) - L << 111 INIT_SETUP(0) << 112 } << 113 << 114 .initcall.init : AT(ADDR(.initcall.ini << 115 INIT_CALLS << 116 } << 117 << 118 .con_initcall.init : AT(ADDR(.con_init << 119 CON_INITCALL << 120 } << 121 << 122 __init_end_before_initramfs = .; << 123 << 124 .init.ramfs : AT(ADDR(.init.ramfs) - L << 125 INIT_RAM_FS << 126 } << 127 << 128 __init_end = .; << 129 << 130 .bss ALIGN (PAGE_SIZE) : AT(ADDR(.bss) << 131 /* page aligned when MMU used << 132 __bss_start = . ; << 133 *(.bss*) << 134 *(COMMON) << 135 . = ALIGN (4) ; << 136 __bss_stop = . ; << 137 } << 138 . = ALIGN(PAGE_SIZE); << 139 _end = .; << 140 << 141 DISCARDS << 142 } <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.