Path: blob/master/arch/microblaze/kernel/vmlinux.lds.S
10817 views
/*1* Copyright (C) 2008-2009 Michal Simek <[email protected]>2* Copyright (C) 2008-2009 PetaLogix3* Copyright (C) 2006 Atmark Techno, Inc.4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*/910OUTPUT_ARCH(microblaze)11ENTRY(microblaze_start)1213#include <asm/page.h>14#include <asm-generic/vmlinux.lds.h>15#include <asm/thread_info.h>1617#ifdef __MICROBLAZEEL__18jiffies = jiffies_64;19#else20jiffies = jiffies_64 + 4;21#endif2223SECTIONS {24. = CONFIG_KERNEL_START;25microblaze_start = CONFIG_KERNEL_BASE_ADDR;26.text : AT(ADDR(.text) - LOAD_OFFSET) {27_text = . ;28_stext = . ;29HEAD_TEXT30TEXT_TEXT31*(.fixup)32EXIT_TEXT33EXIT_CALL34SCHED_TEXT35LOCK_TEXT36KPROBES_TEXT37IRQENTRY_TEXT38. = ALIGN (4) ;39_etext = . ;40}4142. = ALIGN (4) ;43__fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET) {44_fdt_start = . ; /* place for fdt blob */45*(__fdt_blob) ; /* Any link-placed DTB */46. = _fdt_start + 0x4000; /* Pad up to 16kbyte */47_fdt_end = . ;48}4950. = ALIGN(16);51RODATA52EXCEPTION_TABLE(16)5354/*55* sdata2 section can go anywhere, but must be word aligned56* and SDA2_BASE must point to the middle of it57*/58.sdata2 : AT(ADDR(.sdata2) - LOAD_OFFSET) {59_ssrw = .;60. = ALIGN(PAGE_SIZE); /* page aligned when MMU used */61*(.sdata2)62. = ALIGN(8);63_essrw = .;64_ssrw_size = _essrw - _ssrw;65_KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_size / 2);66}6768_sdata = . ;69RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)70_edata = . ;7172/* Under the microblaze ABI, .sdata and .sbss must be contiguous */73. = ALIGN(8);74.sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {75_ssro = .;76*(.sdata)77}7879.sbss : AT(ADDR(.sbss) - LOAD_OFFSET) {80_ssbss = .;81*(.sbss)82_esbss = .;83_essro = .;84_ssro_size = _essro - _ssro ;85_KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;86}8788. = ALIGN(PAGE_SIZE);89__init_begin = .;9091INIT_TEXT_SECTION(PAGE_SIZE)9293.init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {94INIT_DATA95}9697. = ALIGN(4);98.init.ivt : AT(ADDR(.init.ivt) - LOAD_OFFSET) {99__ivt_start = .;100*(.init.ivt)101__ivt_end = .;102}103104.init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) {105INIT_SETUP(0)106}107108.initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET ) {109INIT_CALLS110}111112.con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {113CON_INITCALL114}115116SECURITY_INIT117118__init_end_before_initramfs = .;119120.init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {121INIT_RAM_FS122}123124__init_end = .;125126.bss ALIGN (PAGE_SIZE) : AT(ADDR(.bss) - LOAD_OFFSET) {127/* page aligned when MMU used */128__bss_start = . ;129*(.bss*)130*(COMMON)131. = ALIGN (4) ;132__bss_stop = . ;133_ebss = . ;134}135. = ALIGN(PAGE_SIZE);136_end = .;137138DISCARDS139}140141142