blob: 96994043e438cf570e03cd09cde9ff807311dd35 [file] [log] [blame]
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +01001/*
2 * (C) Copyright 2002
3 * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +01006 */
7
8OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
9OUTPUT_ARCH(arm)
10ENTRY(_start)
11SECTIONS
12{
13 . = 0x00000000;
14
15 . = ALIGN(4);
16 .text :
17 {
Albert ARIBAUDc53687e2013-06-11 14:17:33 +020018 *(.__image_copy_start)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000019 arch/arm/cpu/arm920t/start.o (.text*)
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010020 /* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
21 . = 0x1000;
22 LONG(0x53555243)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000023 *(.text*)
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010024 }
25
26 . = ALIGN(4);
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000027 .rodata : { *(.rodata*) }
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010028
29 . = ALIGN(4);
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000030 .data : { *(.data*) }
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010031
32 . = ALIGN(4);
33 .got : { *(.got) }
34
35 . = .;
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010036
37 . = ALIGN(4);
Marek Vasut607092a2012-10-12 10:27:03 +000038 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000039 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000040 }
41
42 . = ALIGN(4);
Benoît Thébaudeau03bae032013-04-11 09:35:46 +000043
Albert ARIBAUDc53687e2013-06-11 14:17:33 +020044 .image_copy_end :
45 {
46 *(.__image_copy_end)
47 }
Benoît Thébaudeau03bae032013-04-11 09:35:46 +000048
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010049 __bss_start = .;
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000050 .bss : { *(.bss*) }
Simon Glassed70c8f2013-03-14 06:54:53 +000051 __bss_end = .;
Po-Yu Chuang1864b002011-03-01 23:02:04 +000052
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010053 .end :
54 {
55 *(.__end)
56 }
Matthias Kaehlcke195dbd12010-02-01 21:29:39 +010057}