blob: bf2ac13056bd21477700af55ad65897d86a1f205 [file] [log] [blame]
Marek Vasut926227e2011-11-08 23:18:21 +00001/*
2 * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
3 * on behalf of DENX Software Engineering GmbH
4 *
5 * January 2004 - Changed to support H4 device
6 * Copyright (c) 2004-2008 Texas Instruments
7 *
8 * (C) Copyright 2002
9 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
10 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020011 * SPDX-License-Identifier: GPL-2.0+
Marek Vasut926227e2011-11-08 23:18:21 +000012 */
13
14OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
15OUTPUT_ARCH(arm)
16ENTRY(_start)
17SECTIONS
18{
Marek Vasut913784a2014-03-05 20:01:13 +010019 . = CONFIG_SPL_TEXT_BASE;
Marek Vasut926227e2011-11-08 23:18:21 +000020
21 . = ALIGN(4);
22 .text :
23 {
Benoît Thébaudeau3f7740f2014-08-21 15:43:11 +020024 *(.vectors)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000025 arch/arm/cpu/arm926ejs/mxs/start.o (.text*)
26 *(.text*)
Marek Vasut926227e2011-11-08 23:18:21 +000027 }
28
29 . = ALIGN(4);
30 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
31
32 . = ALIGN(4);
33 .data : {
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000034 *(.data*)
Marek Vasut926227e2011-11-08 23:18:21 +000035 }
36
37 . = ALIGN(4);
Marek Vasut926227e2011-11-08 23:18:21 +000038
Marek Vasut926227e2011-11-08 23:18:21 +000039 .rel.dyn : {
40 __rel_dyn_start = .;
41 *(.rel*)
42 __rel_dyn_end = .;
43 }
44
Marek Vasutda6c5d52011-12-08 09:46:12 +000045 .bss : {
46 . = ALIGN(4);
Marek Vasut926227e2011-11-08 23:18:21 +000047 __bss_start = .;
Marek Vasutda6c5d52011-12-08 09:46:12 +000048 *(.bss*)
49 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000050 __bss_end = .;
Marek Vasut926227e2011-11-08 23:18:21 +000051 }
52
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010053 .end :
54 {
55 *(.__end)
56 }
57
58 _image_binary_end = .;
Marek Vasutda6c5d52011-12-08 09:46:12 +000059
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010060 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +010061 .dynbss : { *(.dynbss) }
62 .dynstr : { *(.dynstr*) }
63 .dynamic : { *(.dynamic*) }
64 .hash : { *(.hash*) }
65 .plt : { *(.plt*) }
66 .interp : { *(.interp*) }
67 .gnu : { *(.gnu*) }
68 .ARM.exidx : { *(.ARM.exidx*) }
Marek Vasut926227e2011-11-08 23:18:21 +000069}