Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 1 | /* |
2 | * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: GPL-2.0+ | ||||
5 | */ | ||||
6 | |||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 7 | #include <config.h> |
8 | |||||
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 9 | OUTPUT_FORMAT("elf32-littlearc", "elf32-littlearc", "elf32-littlearc") |
10 | OUTPUT_ARCH(arc) | ||||
11 | ENTRY(_start) | ||||
12 | SECTIONS | ||||
13 | { | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 14 | . = CONFIG_SYS_TEXT_BASE; |
15 | __image_copy_start = .; | ||||
16 | __text_start = .; | ||||
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 17 | .text : { |
Alexey Brodkin | 71f8e54 | 2015-04-10 18:41:58 +0300 | [diff] [blame] | 18 | arch/arc/lib/start.o (.text*) |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 19 | *(.text*) |
20 | } | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 21 | __text_end = .; |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 22 | |
Igor Guryanov | 4fec6aa | 2014-12-24 17:17:11 +0300 | [diff] [blame] | 23 | . = ALIGN(1024); |
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 24 | __ivt_start = .; |
Igor Guryanov | 4fec6aa | 2014-12-24 17:17:11 +0300 | [diff] [blame] | 25 | .ivt : |
26 | { | ||||
27 | *(.ivt) | ||||
28 | } | ||||
Alexey Brodkin | 2f78eec | 2016-08-03 20:44:39 +0300 | [diff] [blame] | 29 | __ivt_end = .; |
Igor Guryanov | 4fec6aa | 2014-12-24 17:17:11 +0300 | [diff] [blame] | 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); | ||||
42 | .u_boot_list : { | ||||
43 | KEEP(*(SORT(.u_boot_list*))); | ||||
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 | } |