Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 2 | /* |
3 | * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. | ||||
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 4 | */ |
5 | |||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 6 | #include <config.h> |
7 | |||||
Alexey Brodkin | 7273810 | 2018-05-30 19:03:39 +0300 | [diff] [blame] | 8 | OUTPUT_FORMAT("elf32-littlearc", "elf32-bigarc", "elf32-littlearc") |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 9 | OUTPUT_ARCH(arc) |
10 | ENTRY(_start) | ||||
11 | SECTIONS | ||||
12 | { | ||||
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame^] | 13 | . = CONFIG_TEXT_BASE; |
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 14 | __image_copy_start = .; |
Igor Guryanov | 4fec6aa | 2014-12-24 17:17:11 +0300 | [diff] [blame] | 15 | . = ALIGN(1024); |
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 16 | __ivt_start = .; |
Igor Guryanov | 4fec6aa | 2014-12-24 17:17:11 +0300 | [diff] [blame] | 17 | .ivt : |
18 | { | ||||
Alexey Brodkin | 91b5eaa | 2018-05-29 20:29:16 +0300 | [diff] [blame] | 19 | KEEP(*(.ivt)) |
Igor Guryanov | 4fec6aa | 2014-12-24 17:17:11 +0300 | [diff] [blame] | 20 | } |
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 21 | __ivt_end = .; |
Igor Guryanov | 4fec6aa | 2014-12-24 17:17:11 +0300 | [diff] [blame] | 22 | |
Alexey Brodkin | abd5676 | 2018-05-29 20:01:00 +0300 | [diff] [blame] | 23 | . = ALIGN(1024); |
24 | __text_start = .; | ||||
25 | .text : { | ||||
26 | arch/arc/lib/start.o (.text*) | ||||
27 | *(.text*) | ||||
28 | } | ||||
29 | __text_end = .; | ||||
30 | |||||
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 31 | . = 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 Scull | 5a9095c | 2022-05-30 10:00:04 +0000 | [diff] [blame] | 42 | __u_boot_list : { |
43 | KEEP(*(SORT(__u_boot_list*))); | ||||
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 44 | } |
45 | |||||
46 | . = ALIGN(4); | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 47 | __rel_dyn_start = .; |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 48 | .rela.dyn : { |
49 | *(.rela.dyn) | ||||
50 | } | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 51 | __rel_dyn_end = .; |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 52 | |
53 | . = ALIGN(4); | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 54 | __bss_start = .; |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 55 | .bss : { |
56 | *(.bss*) | ||||
57 | } | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 58 | __bss_end = .; |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 59 | |
60 | . = ALIGN(4); | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 61 | __image_copy_end = .; |
62 | __init_end = .; | ||||
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 63 | } |