blob: 7e20448f81080469d50e45b9a7e28268a94a1bf7 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Marek Vasut926227e2011-11-08 23:18:21 +00002/*
3 * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
4 * on behalf of DENX Software Engineering GmbH
5 *
6 * January 2004 - Changed to support H4 device
7 * Copyright (c) 2004-2008 Texas Instruments
8 *
9 * (C) Copyright 2002
10 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Marek Vasut926227e2011-11-08 23:18:21 +000011 */
12
13OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
14OUTPUT_ARCH(arm)
15ENTRY(_start)
16SECTIONS
17{
Tom Rini2aaa27d2019-01-22 17:09:26 -050018 . = IMAGE_TEXT_BASE;
Marek Vasut926227e2011-11-08 23:18:21 +000019
20 . = ALIGN(4);
21 .text :
22 {
Benoît Thébaudeau3f7740f2014-08-21 15:43:11 +020023 *(.vectors)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000024 arch/arm/cpu/arm926ejs/mxs/start.o (.text*)
25 *(.text*)
Marek Vasut926227e2011-11-08 23:18:21 +000026 }
27
28 . = ALIGN(4);
29 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
30
31 . = ALIGN(4);
32 .data : {
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000033 *(.data*)
Marek Vasut926227e2011-11-08 23:18:21 +000034 }
35
36 . = ALIGN(4);
Marek Vasut926227e2011-11-08 23:18:21 +000037
Marek Vasut926227e2011-11-08 23:18:21 +000038 .rel.dyn : {
39 __rel_dyn_start = .;
40 *(.rel*)
41 __rel_dyn_end = .;
42 }
43
Marek Vasutda6c5d52011-12-08 09:46:12 +000044 .bss : {
45 . = ALIGN(4);
Marek Vasut926227e2011-11-08 23:18:21 +000046 __bss_start = .;
Marek Vasutda6c5d52011-12-08 09:46:12 +000047 *(.bss*)
48 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000049 __bss_end = .;
Marek Vasut926227e2011-11-08 23:18:21 +000050 }
51
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010052 .end :
53 {
54 *(.__end)
55 }
56
57 _image_binary_end = .;
Marek Vasutda6c5d52011-12-08 09:46:12 +000058
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010059 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +010060 .dynbss : { *(.dynbss) }
61 .dynstr : { *(.dynstr*) }
62 .dynamic : { *(.dynamic*) }
63 .hash : { *(.hash*) }
64 .plt : { *(.plt*) }
65 .interp : { *(.interp*) }
66 .gnu : { *(.gnu*) }
67 .ARM.exidx : { *(.ARM.exidx*) }
Marek Vasut926227e2011-11-08 23:18:21 +000068}