2011-10-19 20:41:05 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Andes Technology Corporation
|
|
|
|
* Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
|
|
|
|
* Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-10-19 20:41:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
|
|
|
|
OUTPUT_ARCH(nds32)
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
arch/nds32/cpu/n1213/start.o (.text)
|
|
|
|
*(.text)
|
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
2011-11-09 08:24:57 +00:00
|
|
|
.data : { *(.data*) }
|
2011-10-19 20:41:05 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
|
|
|
.got : {
|
|
|
|
__got_start = .;
|
2016-04-14 06:32:27 +00:00
|
|
|
*(.got.plt) *(.got)
|
2011-10-19 20:41:05 +00:00
|
|
|
__got_end = .;
|
|
|
|
}
|
|
|
|
|
2012-10-12 10:27:03 +00:00
|
|
|
. = ALIGN(4);
|
|
|
|
.u_boot_list : {
|
2013-02-25 00:59:00 +00:00
|
|
|
KEEP(*(SORT(.u_boot_list*)));
|
2012-10-12 10:27:03 +00:00
|
|
|
}
|
|
|
|
|
2011-10-19 20:41:05 +00:00
|
|
|
. = ALIGN(4);
|
2016-04-14 06:32:27 +00:00
|
|
|
/DISCARD/ : { *(.rela.plt*) }
|
|
|
|
.rela.dyn : {
|
|
|
|
__rel_dyn_start = .;
|
|
|
|
*(.rela*)
|
|
|
|
__rel_dyn_end = .;
|
|
|
|
}
|
2011-10-19 20:41:05 +00:00
|
|
|
_end = .;
|
|
|
|
|
|
|
|
.bss : {
|
|
|
|
__bss_start = .;
|
|
|
|
*(.bss)
|
2016-04-14 06:32:27 +00:00
|
|
|
. = ALIGN(4);
|
2013-03-14 06:54:53 +00:00
|
|
|
__bss_end = .;
|
2011-10-19 20:41:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|