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 | |||||
Masahiro Yamada | 30a198b | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 25 | arch/arm/cpu/arm1136/start.o (.text*) |
26 | board/freescale/mx31ads/built-in.o (.text*) | ||||
27 | arch/arm/lib/built-in.o (.text*) | ||||
28 | net/built-in.o (.text*) | ||||
29 | drivers/mtd/built-in.o (.text*) | ||||
Guennadi Liakhovetski | 0c8382b | 2008-04-03 17:04:22 +0200 | [diff] [blame] | 30 | |
31 | . = DEFINED(env_offset) ? env_offset : .; | ||||
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 32 | common/env_embedded.o(.text*) |
Guennadi Liakhovetski | 0c8382b | 2008-04-03 17:04:22 +0200 | [diff] [blame] | 33 | |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 34 | *(.text*) |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 35 | } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 36 | . = ALIGN(4); |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 37 | .rodata : { *(.rodata*) } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 38 | |
39 | . = ALIGN(4); | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 40 | .data : { |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 41 | *(.data*) |
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 42 | } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 43 | |
44 | . = ALIGN(4); | ||||
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 45 | |
46 | . = ALIGN(4); | ||||
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 47 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 48 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 49 | } |
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 50 | |
51 | . = ALIGN(4); | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 52 | |
Albert ARIBAUD | c53687e | 2013-06-11 14:17:33 +0200 | [diff] [blame] | 53 | .image_copy_end : |
54 | { | ||||
55 | *(.__image_copy_end) | ||||
56 | } | ||||
Stefano Babic | b913a3a | 2012-10-10 21:11:41 +0000 | [diff] [blame] | 57 | |
Albert ARIBAUD | af3ff16 | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 58 | .rel_dyn_start : |
59 | { | ||||
60 | *(.__rel_dyn_start) | ||||
61 | } | ||||
62 | |||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 63 | .rel.dyn : { |
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 64 | *(.rel*) |
Albert ARIBAUD | af3ff16 | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 65 | } |
66 | |||||
67 | .rel_dyn_end : | ||||
68 | { | ||||
69 | *(.__rel_dyn_end) | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 70 | } |
71 | |||||
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 72 | .end : |
73 | { | ||||
74 | *(.__end) | ||||
75 | } | ||||
76 | |||||
77 | _image_binary_end = .; | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 78 | |
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 79 | /* |
80 | * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c | ||||
81 | * __bss_base and __bss_limit are for linker only (overlay ordering) | ||||
82 | */ | ||||
83 | |||||
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 84 | .bss_start __rel_dyn_start (OVERLAY) : { |
85 | KEEP(*(.__bss_start)); | ||||
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 86 | __bss_base = .; |
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 87 | } |
88 | |||||
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 89 | .bss __bss_base (OVERLAY) : { |
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 90 | *(.bss*) |
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 91 | . = ALIGN(4); |
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 92 | __bss_limit = .; |
Albert ARIBAUD | 436f632 | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 93 | } |
Albert ARIBAUD | ba5662d | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 94 | .bss_end __bss_limit (OVERLAY) : { |
95 | KEEP(*(.__bss_end)); | ||||
Fabio Estevam | 574cff7 | 2011-06-05 06:26:49 +0000 | [diff] [blame] | 96 | } |
97 | |||||
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 98 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | 95fc6d6 | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 99 | .dynbss : { *(.dynbss) } |
100 | .dynstr : { *(.dynstr*) } | ||||
101 | .dynamic : { *(.dynamic*) } | ||||
102 | .hash : { *(.hash*) } | ||||
103 | .plt : { *(.plt*) } | ||||
104 | .interp : { *(.interp*) } | ||||
105 | .gnu : { *(.gnu*) } | ||||
106 | .ARM.exidx : { *(.ARM.exidx*) } | ||||
Guennadi Liakhovetski | 3b26c6b | 2008-04-14 10:53:12 +0200 | [diff] [blame] | 107 | } |