Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 1 | /* |
2 | * January 2004 - Changed to support H4 device | ||||
3 | * Copyright (c) 2004 Texas Instruments | ||||
4 | * | ||||
5 | * (C) Copyright 2002 | ||||
Detlev Zundel | f1b3f2b | 2009-05-13 10:54:10 +0200 | [diff] [blame] | 6 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 7 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 9 | */ |
10 | |||||
11 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") | ||||
12 | OUTPUT_ARCH(arm) | ||||
13 | ENTRY(_start) | ||||
14 | SECTIONS | ||||
15 | { | ||||
16 | . = 0x00000000; | ||||
17 | |||||
18 | . = ALIGN(4); | ||||
19 | .text : | ||||
20 | { | ||||
Albert ARIBAUD | c53687e | 2013-06-11 14:17:33 +0200 | [diff] [blame] | 21 | *(.__image_copy_start) |
Guennadi Liakhovetski | 0c8382b | 2008-04-03 17:04:22 +0200 | [diff] [blame] | 22 | /* WARNING - the following is hand-optimized to fit within */ |
23 | /* the sector layout of our flash chips! XXX FIXME XXX */ | ||||
24 | |||||
Albert ARIBAUD | 9852cc6 | 2014-04-15 16:13:51 +0200 | [diff] [blame] | 25 | * (.vectors) |
Masahiro Yamada | 30a198b | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 26 | arch/arm/cpu/arm1136/start.o (.text*) |
27 | board/freescale/mx31ads/built-in.o (.text*) | ||||
28 | arch/arm/lib/built-in.o (.text*) | ||||
29 | net/built-in.o (.text*) | ||||
30 | drivers/mtd/built-in.o (.text*) | ||||
Guennadi Liakhovetski | 0c8382b | 2008-04-03 17:04:22 +0200 | [diff] [blame] | 31 | |
32 | . = DEFINED(env_offset) ? env_offset : .; | ||||
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 33 | common/env_embedded.o(.text*) |
Guennadi Liakhovetski | 0c8382b | 2008-04-03 17:04:22 +0200 | [diff] [blame] | 34 | |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 35 | *(.text*) |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 36 | } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 37 | . = ALIGN(4); |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 38 | .rodata : { *(.rodata*) } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 39 | |
40 | . = ALIGN(4); | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 41 | .data : { |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 42 | *(.data*) |
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 43 | } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 44 | |
45 | . = ALIGN(4); | ||||
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 46 | |
47 | . = ALIGN(4); | ||||
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 48 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 49 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 50 | } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 51 | |
52 | . = ALIGN(4); | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 53 | |
Albert ARIBAUD | c53687e | 2013-06-11 14:17:33 +0200 | [diff] [blame] | 54 | .image_copy_end : |
55 | { | ||||
56 | *(.__image_copy_end) | ||||
57 | } | ||||
Stefano Babic | b913a3a | 2012-10-10 21:11:41 +0000 | [diff] [blame] | 58 | |
Albert ARIBAUD | af3ff16 | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 59 | .rel_dyn_start : |
60 | { | ||||
61 | *(.__rel_dyn_start) | ||||
62 | } | ||||
63 | |||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 64 | .rel.dyn : { |
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 65 | *(.rel*) |
Albert ARIBAUD | af3ff16 | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 66 | } |
67 | |||||
68 | .rel_dyn_end : | ||||
69 | { | ||||
70 | *(.__rel_dyn_end) | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 71 | } |
72 | |||||
Simon Glass | 5cb08fa | 2014-06-02 22:04:46 -0600 | [diff] [blame] | 73 | .hash : { *(.hash*) } |
74 | |||||
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 75 | .end : |
76 | { | ||||
77 | *(.__end) | ||||
78 | } | ||||
79 | |||||
80 | _image_binary_end = .; | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 81 | |
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 82 | /* |
83 | * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c | ||||
84 | * __bss_base and __bss_limit are for linker only (overlay ordering) | ||||
85 | */ | ||||
86 | |||||
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 87 | .bss_start __rel_dyn_start (OVERLAY) : { |
88 | KEEP(*(.__bss_start)); | ||||
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 89 | __bss_base = .; |
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 90 | } |
91 | |||||
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 92 | .bss __bss_base (OVERLAY) : { |
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 93 | *(.bss*) |
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 94 | . = ALIGN(4); |
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 95 | __bss_limit = .; |
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 96 | } |
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 97 | .bss_end __bss_limit (OVERLAY) : { |
98 | KEEP(*(.__bss_end)); | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 99 | } |
100 | |||||
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 101 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | 95fc6d6 | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 102 | .dynbss : { *(.dynbss) } |
103 | .dynstr : { *(.dynstr*) } | ||||
104 | .dynamic : { *(.dynamic*) } | ||||
Simon Glass | 5cb08fa | 2014-06-02 22:04:46 -0600 | [diff] [blame] | 105 | .gnu.hash : { *(.gnu.hash) } |
Albert ARIBAUD | 95fc6d6 | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 106 | .plt : { *(.plt*) } |
107 | .interp : { *(.interp*) } | ||||
108 | .gnu : { *(.gnu*) } | ||||
109 | .ARM.exidx : { *(.ARM.exidx*) } | ||||
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 110 | } |