2009-06-12 14:01:00 +00:00
|
|
|
/*
|
|
|
|
* arch/score/kernel/vmlinux.lds.S
|
|
|
|
*
|
|
|
|
* Score Processor version.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
|
|
|
|
* Chen Liqin <liqin.chen@sunplusct.com>
|
|
|
|
* Lennox Wu <lennox.wu@sunplusct.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see the file COPYING, or write
|
|
|
|
* to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm-generic/vmlinux.lds.h>
|
2009-09-23 03:38:42 +00:00
|
|
|
#include <asm/thread_info.h>
|
|
|
|
#include <asm/page.h>
|
2009-06-12 14:01:00 +00:00
|
|
|
|
|
|
|
OUTPUT_ARCH(score)
|
|
|
|
ENTRY(_stext)
|
|
|
|
|
|
|
|
jiffies = jiffies_64;
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = CONFIG_MEMORY_START + 0x2000;
|
|
|
|
/* read-only */
|
|
|
|
.text : {
|
|
|
|
_text = .; /* Text and read-only data */
|
|
|
|
TEXT_TEXT
|
|
|
|
SCHED_TEXT
|
|
|
|
LOCK_TEXT
|
|
|
|
KPROBES_TEXT
|
|
|
|
*(.text.*)
|
|
|
|
*(.fixup)
|
|
|
|
. = ALIGN (4) ;
|
|
|
|
_etext = .; /* End of text section */
|
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(16);
|
2013-07-03 22:03:37 +00:00
|
|
|
_sdata = .; /* Start of data section */
|
2009-06-12 14:01:00 +00:00
|
|
|
RODATA
|
|
|
|
|
2009-09-23 03:38:42 +00:00
|
|
|
EXCEPTION_TABLE(16)
|
2009-06-12 14:01:00 +00:00
|
|
|
|
2009-09-23 03:38:42 +00:00
|
|
|
RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
|
2009-06-12 14:01:00 +00:00
|
|
|
|
|
|
|
/* We want the small data sections together, so single-instruction offsets
|
|
|
|
can access them all, and initialized data all before uninitialized, so
|
|
|
|
we can shorten the on-disk segment size. */
|
|
|
|
. = ALIGN(8);
|
|
|
|
.sdata : {
|
|
|
|
*(.sdata)
|
|
|
|
}
|
|
|
|
_edata = .; /* End of data section */
|
|
|
|
|
|
|
|
/* will be freed after init */
|
2009-09-23 03:38:42 +00:00
|
|
|
. = ALIGN(PAGE_SIZE); /* Init code and data */
|
2009-06-12 14:01:00 +00:00
|
|
|
__init_begin = .;
|
|
|
|
|
2009-09-23 03:38:42 +00:00
|
|
|
INIT_TEXT_SECTION(PAGE_SIZE)
|
|
|
|
INIT_DATA_SECTION(16)
|
2009-06-12 14:01:00 +00:00
|
|
|
|
|
|
|
/* .exit.text is discarded at runtime, not link time, to deal with
|
|
|
|
* references from .rodata
|
|
|
|
*/
|
|
|
|
.exit.text : {
|
|
|
|
EXIT_TEXT
|
|
|
|
}
|
|
|
|
.exit.data : {
|
|
|
|
EXIT_DATA
|
|
|
|
}
|
2009-09-23 03:38:42 +00:00
|
|
|
. = ALIGN(PAGE_SIZE);
|
2009-06-12 14:01:00 +00:00
|
|
|
__init_end = .;
|
|
|
|
/* freed after init ends here */
|
|
|
|
|
2009-09-23 03:38:42 +00:00
|
|
|
BSS_SECTION(0, 0, 0)
|
2009-06-12 14:01:00 +00:00
|
|
|
_end = .;
|
|
|
|
}
|