blob: d3d0a53bf2db29a1a9b963818826da3e28c77d9e [file] [log] [blame]
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04001/*
2 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
Alexey Brodkin9bef24d2016-08-03 20:44:39 +03007#include <config.h>
8
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04009OUTPUT_FORMAT("elf32-littlearc", "elf32-littlearc", "elf32-littlearc")
10OUTPUT_ARCH(arc)
11ENTRY(_start)
12SECTIONS
13{
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030014 . = CONFIG_SYS_TEXT_BASE;
15 __image_copy_start = .;
16 __text_start = .;
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040017 .text : {
Alexey Brodkin89576072015-04-10 18:41:58 +030018 arch/arc/lib/start.o (.text*)
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040019 *(.text*)
20 }
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030021 __text_end = .;
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040022
Igor Guryanov20a58ac2014-12-24 17:17:11 +030023 . = ALIGN(1024);
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030024 __ivt_start = .;
Igor Guryanov20a58ac2014-12-24 17:17:11 +030025 .ivt :
26 {
27 *(.ivt)
28 }
Alexey Brodkin9bef24d2016-08-03 20:44:39 +030029 __ivt_end = .;
Igor Guryanov20a58ac2014-12-24 17:17:11 +030030
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}