blob: e12145c76849e894efb7b4c15506c5935ebad997 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04002/*
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04004 */
5
Alexey Brodkin9bef24d2016-08-03 20:44:39 +03006#include <config.h>
7
Alexey Brodkin7af51f12018-05-30 19:03:39 +03008OUTPUT_FORMAT("elf32-littlearc", "elf32-bigarc", "elf32-littlearc")
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04009OUTPUT_ARCH(arc)
10ENTRY(_start)
11SECTIONS
12{
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030013 . = CONFIG_SYS_TEXT_BASE;
14 __image_copy_start = .;
Igor Guryanov20a58ac2014-12-24 17:17:11 +030015 . = ALIGN(1024);
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030016 __ivt_start = .;
Igor Guryanov20a58ac2014-12-24 17:17:11 +030017 .ivt :
18 {
Alexey Brodkin7530bb22018-05-29 20:29:16 +030019 KEEP(*(.ivt))
Igor Guryanov20a58ac2014-12-24 17:17:11 +030020 }
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030021 __ivt_end = .;
Igor Guryanov20a58ac2014-12-24 17:17:11 +030022
Alexey Brodkinef2cd492018-05-29 20:01:00 +030023 . = ALIGN(1024);
24 __text_start = .;
25 .text : {
26 arch/arc/lib/start.o (.text*)
27 *(.text*)
28 }
29 __text_end = .;
30
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040031 . = ALIGN(4);
32 .rodata : {
33 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
34 }
35
36 . = ALIGN(4);
37 .data : {
38 *(.data*)
39 }
40
41 . = ALIGN(4);
42 .u_boot_list : {
43 KEEP(*(SORT(.u_boot_list*)));
44 }
45
46 . = ALIGN(4);
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030047 __rel_dyn_start = .;
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040048 .rela.dyn : {
49 *(.rela.dyn)
50 }
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030051 __rel_dyn_end = .;
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040052
53 . = ALIGN(4);
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030054 __bss_start = .;
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040055 .bss : {
56 *(.bss*)
57 }
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030058 __bss_end = .;
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040059
60 . = ALIGN(4);
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030061 __image_copy_end = .;
62 __init_end = .;
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040063}