Merge tag 'efi-2019-10-rc2' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / arch / arm / mach-omap2 / u-boot-spl.lds
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2002
4  * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
5  *
6  * (C) Copyright 2010
7  * Texas Instruments, <www.ti.com>
8  *      Aneesh V <aneesh@ti.com>
9  */
10
11 MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\
12                 LENGTH = IMAGE_MAX_SIZE }
13 MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
14                 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
15
16 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
17 OUTPUT_ARCH(arm)
18 ENTRY(_start)
19 SECTIONS
20 {
21         .text      :
22         {
23                 __start = .;
24                 *(.vectors)
25                 arch/arm/cpu/armv7/start.o      (.text*)
26                 *(.text*)
27         } >.sram
28
29         . = ALIGN(4);
30         .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
31
32         . = ALIGN(4);
33         .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
34
35         . = ALIGN(4);
36         .u_boot_list : {
37                 KEEP(*(SORT(.u_boot_list*)));
38         } >.sram
39
40         . = ALIGN(4);
41         __image_copy_end = .;
42
43         .end :
44         {
45                 *(.__end)
46         }
47
48         _image_binary_end = .;
49
50         .bss :
51         {
52                 . = ALIGN(4);
53                 __bss_start = .;
54                 *(.bss*)
55                 . = ALIGN(4);
56                 __bss_end = .;
57         } >.sdram
58 }