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