xref: /openbmc/u-boot/arch/arc/cpu/u-boot.lds (revision 2290fe06)
1/*
2 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier:	GPL-2.0+
5 */
6
7OUTPUT_FORMAT("elf32-littlearc", "elf32-littlearc", "elf32-littlearc")
8OUTPUT_ARCH(arc)
9ENTRY(_start)
10SECTIONS
11{
12	. = ALIGN(4);
13	.text :	{
14		*(.__text_start)
15		*(.__image_copy_start)
16		arch/arc/lib/start.o (.text*)
17		*(.text*)
18	}
19
20	. = ALIGN(4);
21	.text_end :
22	{
23		*(.__text_end)
24	}
25
26	. = ALIGN(1024);
27	.ivt_start : {
28		*(.__ivt_start)
29	}
30
31	.ivt :
32	{
33		*(.ivt)
34	}
35
36	.ivt_end : {
37		*(.__ivt_end)
38	}
39
40	. = ALIGN(4);
41	.rodata : {
42		*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
43	}
44
45	. = ALIGN(4);
46	.data : {
47		*(.data*)
48	}
49
50	. = ALIGN(4);
51	.u_boot_list : {
52		KEEP(*(SORT(.u_boot_list*)));
53	}
54
55	. = ALIGN(4);
56	.rel_dyn_start : {
57		*(.__rel_dyn_start)
58	}
59
60	.rela.dyn : {
61		*(.rela.dyn)
62	}
63
64	.rel_dyn_end : {
65		*(.__rel_dyn_end)
66	}
67
68	. = ALIGN(4);
69	.bss_start : {
70		*(.__bss_start);
71	}
72
73	.bss : {
74		*(.bss*)
75	}
76
77	.bss_end : {
78		*(.__bss_end);
79	}
80
81	. = ALIGN(4);
82	.image_copy_end : {
83		*(.__image_copy_end)
84		*(.__init_end)
85	}
86}
87