xref: /openbmc/u-boot/arch/nds32/cpu/n1213/u-boot.lds (revision ebce73f0)
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	. = ALIGN(4);
39	.u_boot_list : {
40		KEEP(*(SORT(.u_boot_list*)));
41	}
42
43	. = ALIGN(4);
44	/DISCARD/ : { *(.rela.plt*) }
45	.rela.dyn : {
46		__rel_dyn_start = .;
47		*(.rela*)
48		__rel_dyn_end = .;
49 }
50	_end = .;
51
52	.bss : {
53		__bss_start = .;
54		*(.bss)
55		. = ALIGN(4);
56		__bss_end = .;
57	}
58
59}
60