blob: 6a52ce461e51a16584a498f8f65e0eaaf4b2d447 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Alexey Brodkin3a59d912014-02-04 12:56:14 +04002/*
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
Alexey Brodkin3a59d912014-02-04 12:56:14 +04004 */
5
Alexey Brodkin2f78eec2016-08-03 20:44:39 +03006#include <config.h>
7
Alexey Brodkin72738102018-05-30 19:03:39 +03008OUTPUT_FORMAT("elf32-littlearc", "elf32-bigarc", "elf32-littlearc")
Alexey Brodkin3a59d912014-02-04 12:56:14 +04009OUTPUT_ARCH(arc)
10ENTRY(_start)
11SECTIONS
12{
Simon Glass72cc5382022-10-20 18:22:39 -060013 . = CONFIG_TEXT_BASE;
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030014 __image_copy_start = .;
Igor Guryanov4fec6aa2014-12-24 17:17:11 +030015 . = ALIGN(1024);
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030016 __ivt_start = .;
Igor Guryanov4fec6aa2014-12-24 17:17:11 +030017 .ivt :
18 {
Alexey Brodkin91b5eaa2018-05-29 20:29:16 +030019 KEEP(*(.ivt))
Igor Guryanov4fec6aa2014-12-24 17:17:11 +030020 }
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030021 __ivt_end = .;
Igor Guryanov4fec6aa2014-12-24 17:17:11 +030022
Alexey Brodkinabd56762018-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 Brodkin3a59d912014-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);
Andrew Scull5a9095c2022-05-30 10:00:04 +000042 __u_boot_list : {
43 KEEP(*(SORT(__u_boot_list*)));
Alexey Brodkin3a59d912014-02-04 12:56:14 +040044 }
45
46 . = ALIGN(4);
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030047 __rel_dyn_start = .;
Alexey Brodkin3a59d912014-02-04 12:56:14 +040048 .rela.dyn : {
49 *(.rela.dyn)
50 }
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030051 __rel_dyn_end = .;
Alexey Brodkin3a59d912014-02-04 12:56:14 +040052
53 . = ALIGN(4);
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030054 __bss_start = .;
Alexey Brodkin3a59d912014-02-04 12:56:14 +040055 .bss : {
56 *(.bss*)
57 }
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030058 __bss_end = .;
Alexey Brodkin3a59d912014-02-04 12:56:14 +040059
60 . = ALIGN(4);
Alexey Brodkin2f78eec2016-08-03 20:44:39 +030061 __image_copy_end = .;
62 __init_end = .;
Alexey Brodkin3a59d912014-02-04 12:56:14 +040063}