xref: /openbmc/u-boot/arch/nds32/cpu/n1213/u-boot.lds (revision 989ce049)
1/*
2 * (C) Copyright 2000
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * Copyright (C) 2011 Andes Technology Corporation
6 * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
7 * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
8 *
9 * SPDX-License-Identifier:	GPL-2.0+
10 */
11
12OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
13OUTPUT_ARCH(nds32)
14ENTRY(_start)
15SECTIONS
16{
17	. = ALIGN(4);
18	.text :
19	{
20		arch/nds32/cpu/n1213/start.o	(.text)
21		*(.text)
22	}
23
24	. = ALIGN(4);
25	.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
26
27	. = ALIGN(4);
28	.data : { *(.data*) }
29
30	. = ALIGN(4);
31
32	.got : {
33		__got_start = .;
34		 *(.got.plt) *(.got)
35		__got_end = .;
36	}
37
38	. = .;
39
40	. = ALIGN(4);
41	.u_boot_list : {
42		KEEP(*(SORT(.u_boot_list*)));
43	}
44
45	. = ALIGN(4);
46
47	_end = .;
48
49	.bss : {
50		__bss_start = .;
51		*(.bss)
52		 . = ALIGN(4);
53		__bss_end = .;
54	}
55
56}
57