xref: /rk3399_rockchip-uboot/examples/standalone/nds32.lds (revision 72c73ddec3d50776fda2fcd92854f0d9fc9d4a33)
1*72c73ddeSMacpaul Lin/*
2*72c73ddeSMacpaul Lin * Copyright (C) 2011 Andes Technology Corporation
3*72c73ddeSMacpaul Lin * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
4*72c73ddeSMacpaul Lin * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
5*72c73ddeSMacpaul Lin *
6*72c73ddeSMacpaul Lin * See file CREDITS for list of people who contributed to this
7*72c73ddeSMacpaul Lin * project.
8*72c73ddeSMacpaul Lin *
9*72c73ddeSMacpaul Lin * This program is free software; you can redistribute it and/or
10*72c73ddeSMacpaul Lin * modify it under the terms of the GNU General Public License as
11*72c73ddeSMacpaul Lin * published by the Free Software Foundation; either version 2 of
12*72c73ddeSMacpaul Lin * the License, or (at your option) any later version.
13*72c73ddeSMacpaul Lin *
14*72c73ddeSMacpaul Lin * This program is distributed in the hope that it will be useful,
15*72c73ddeSMacpaul Lin * but WITHOUT ANY WARRANTY; without even the implied warranty of
16*72c73ddeSMacpaul Lin * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*72c73ddeSMacpaul Lin * GNU General Public License for more details.
18*72c73ddeSMacpaul Lin *
19*72c73ddeSMacpaul Lin * You should have received a copy of the GNU General Public License
20*72c73ddeSMacpaul Lin * along with this program; if not, write to the Free Software
21*72c73ddeSMacpaul Lin * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22*72c73ddeSMacpaul Lin * MA 02111-1307 USA
23*72c73ddeSMacpaul Lin */
24*72c73ddeSMacpaul Lin
25*72c73ddeSMacpaul LinOUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
26*72c73ddeSMacpaul LinOUTPUT_ARCH(nds32)
27*72c73ddeSMacpaul LinENTRY(_start)
28*72c73ddeSMacpaul LinSECTIONS
29*72c73ddeSMacpaul Lin{
30*72c73ddeSMacpaul Lin	. = ALIGN(4);
31*72c73ddeSMacpaul Lin	.text :
32*72c73ddeSMacpaul Lin	{
33*72c73ddeSMacpaul Lin		*(.text)
34*72c73ddeSMacpaul Lin	}
35*72c73ddeSMacpaul Lin
36*72c73ddeSMacpaul Lin	. = ALIGN(4);
37*72c73ddeSMacpaul Lin	.data : { *(.data) }
38*72c73ddeSMacpaul Lin
39*72c73ddeSMacpaul Lin	. = ALIGN(4);
40*72c73ddeSMacpaul Lin
41*72c73ddeSMacpaul Lin	.got : {
42*72c73ddeSMacpaul Lin		__got_start = .;
43*72c73ddeSMacpaul Lin		*(.got)
44*72c73ddeSMacpaul Lin		__got_end = .;
45*72c73ddeSMacpaul Lin	}
46*72c73ddeSMacpaul Lin
47*72c73ddeSMacpaul Lin	. = ALIGN(4);
48*72c73ddeSMacpaul Lin	__bss_start = .;
49*72c73ddeSMacpaul Lin	.bss : { *(.bss) }
50*72c73ddeSMacpaul Lin	__bss_end = .;
51*72c73ddeSMacpaul Lin
52*72c73ddeSMacpaul Lin	. = ALIGN(4);
53*72c73ddeSMacpaul Lin	.rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
54*72c73ddeSMacpaul Lin
55*72c73ddeSMacpaul Lin	_end = .;
56*72c73ddeSMacpaul Lin}
57