Guennadi Liakhovetski | b5dc9b3 | 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 | 792a09e | 2009-05-13 10:54:10 +0200 | [diff] [blame] | 6 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
Guennadi Liakhovetski | b5dc9b3 | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 7 | * |
Wolfgang Denk | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Guennadi Liakhovetski | b5dc9b3 | 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 | d026dec | 2013-06-11 14:17:33 +0200 | [diff] [blame] | 21 | *(.__image_copy_start) |
Guennadi Liakhovetski | d23ff68 | 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 | 41623c9 | 2014-04-15 16:13:51 +0200 | [diff] [blame] | 25 | * (.vectors) |
Masahiro Yamada | e2906a5 | 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 | d23ff68 | 2008-04-03 17:04:22 +0200 | [diff] [blame] | 31 | |
32 | . = DEFINED(env_offset) ? env_offset : .; | ||||
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 33 | common/env_embedded.o(.text*) |
Guennadi Liakhovetski | d23ff68 | 2008-04-03 17:04:22 +0200 | [diff] [blame] | 34 | |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 35 | *(.text*) |
Guennadi Liakhovetski | b5dc9b3 | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 36 | } |
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 37 | . = ALIGN(4); |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 38 | .rodata : { *(.rodata*) } |
Guennadi Liakhovetski | b5dc9b3 | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 39 | |
40 | . = ALIGN(4); | ||||
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 41 | .data : { |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 42 | *(.data*) |
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 43 | } |
Guennadi Liakhovetski | b5dc9b3 | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 44 | |
45 | . = ALIGN(4); | ||||
Guennadi Liakhovetski | b5dc9b3 | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 46 | |
47 | . = ALIGN(4); | ||||
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 48 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 49 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 50 | } |
Guennadi Liakhovetski | b5dc9b3 | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 51 | |
52 | . = ALIGN(4); | ||||
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 53 | |
Albert ARIBAUD | d026dec | 2013-06-11 14:17:33 +0200 | [diff] [blame] | 54 | .image_copy_end : |
55 | { | ||||
56 | *(.__image_copy_end) | ||||
57 | } | ||||
Stefano Babic | b736e4b | 2012-10-10 21:11:41 +0000 | [diff] [blame] | 58 | |
Albert ARIBAUD | 47bd65e | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 59 | .rel_dyn_start : |
60 | { | ||||
61 | *(.__rel_dyn_start) | ||||
62 | } | ||||
63 | |||||
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 64 | .rel.dyn : { |
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 65 | *(.rel*) |
Albert ARIBAUD | 47bd65e | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 66 | } |
67 | |||||
68 | .rel_dyn_end : | ||||
69 | { | ||||
70 | *(.__rel_dyn_end) | ||||
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 71 | } |
72 | |||||
Simon Glass | 6469a34 | 2014-06-02 22:04:46 -0600 | [diff] [blame] | 73 | .hash : { *(.hash*) } |
74 | |||||
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 75 | .end : |
76 | { | ||||
77 | *(.__end) | ||||
78 | } | ||||
79 | |||||
80 | _image_binary_end = .; | ||||
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 81 | |
Albert ARIBAUD | f84a7b8 | 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 | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 87 | .bss_start __rel_dyn_start (OVERLAY) : { |
88 | KEEP(*(.__bss_start)); | ||||
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 89 | __bss_base = .; |
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 90 | } |
91 | |||||
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 92 | .bss __bss_base (OVERLAY) : { |
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 93 | *(.bss*) |
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 94 | . = ALIGN(4); |
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 95 | __bss_limit = .; |
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 96 | } |
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 97 | .bss_end __bss_limit (OVERLAY) : { |
98 | KEEP(*(.__bss_end)); | ||||
Fabio Estevam | 4ac2e2d | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 99 | } |
100 | |||||
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 101 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | 47ed5dd | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 102 | .dynbss : { *(.dynbss) } |
103 | .dynstr : { *(.dynstr*) } | ||||
104 | .dynamic : { *(.dynamic*) } | ||||
Simon Glass | 6469a34 | 2014-06-02 22:04:46 -0600 | [diff] [blame] | 105 | .gnu.hash : { *(.gnu.hash) } |
Albert ARIBAUD | 47ed5dd | 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 | b5dc9b3 | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 110 | } |