/*1* arch/score/kernel/vmlinux.lds.S2*3* Score Processor version.4*5* Copyright (C) 2009 Sunplus Core Technology Co., Ltd.6* Chen Liqin <[email protected]>7* Lennox Wu <[email protected]>8*9* This program is free software; you can redistribute it and/or modify10* it under the terms of the GNU General Public License as published by11* the Free Software Foundation; either version 2 of the License, or12* (at your option) any later version.13*14* This program is distributed in the hope that it will be useful,15* but WITHOUT ANY WARRANTY; without even the implied warranty of16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the17* GNU General Public License for more details.18*19* You should have received a copy of the GNU General Public License20* along with this program; if not, see the file COPYING, or write21* to the Free Software Foundation, Inc.,22* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA23*/2425#include <asm-generic/vmlinux.lds.h>26#include <asm/thread_info.h>27#include <asm/page.h>2829OUTPUT_ARCH(score)30ENTRY(_stext)3132jiffies = jiffies_64;3334SECTIONS35{36. = CONFIG_MEMORY_START + 0x2000;37/* read-only */38.text : {39_text = .; /* Text and read-only data */40TEXT_TEXT41SCHED_TEXT42LOCK_TEXT43KPROBES_TEXT44*(.text.*)45*(.fixup)46. = ALIGN (4) ;47_etext = .; /* End of text section */48}4950. = ALIGN(16);51RODATA5253EXCEPTION_TABLE(16)5455RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)5657/* We want the small data sections together, so single-instruction offsets58can access them all, and initialized data all before uninitialized, so59we can shorten the on-disk segment size. */60. = ALIGN(8);61.sdata : {62*(.sdata)63}64_edata = .; /* End of data section */6566/* will be freed after init */67. = ALIGN(PAGE_SIZE); /* Init code and data */68__init_begin = .;6970INIT_TEXT_SECTION(PAGE_SIZE)71INIT_DATA_SECTION(16)7273/* .exit.text is discarded at runtime, not link time, to deal with74* references from .rodata75*/76.exit.text : {77EXIT_TEXT78}79.exit.data : {80EXIT_DATA81}82. = ALIGN(PAGE_SIZE);83__init_end = .;84/* freed after init ends here */8586BSS_SECTION(0, 0, 0)87_end = .;88}899091