Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 1 | /* |
| 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 Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 15 | OUTPUT_ARCH(arm) |
| 16 | ENTRY(_start) |
| 17 | SECTIONS |
| 18 | { |
Marek Vasut | 9c2c8a3 | 2014-03-05 20:01:13 +0100 | [diff] [blame] | 19 | . = CONFIG_SPL_TEXT_BASE; |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 20 | |
| 21 | . = ALIGN(4); |
| 22 | .text : |
| 23 | { |
Benoît Thébaudeau | eeadd3f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 24 | *(.vectors) |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 25 | arch/arm/cpu/arm926ejs/mxs/start.o (.text*) |
| 26 | *(.text*) |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | . = ALIGN(4); |
| 30 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 31 | |
| 32 | . = ALIGN(4); |
| 33 | .data : { |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 34 | *(.data*) |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | . = ALIGN(4); |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 38 | |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 39 | .rel.dyn : { |
| 40 | __rel_dyn_start = .; |
| 41 | *(.rel*) |
| 42 | __rel_dyn_end = .; |
| 43 | } |
| 44 | |
Marek Vasut | 8ba1604 | 2011-12-08 09:46:12 +0000 | [diff] [blame] | 45 | .bss : { |
| 46 | . = ALIGN(4); |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 47 | __bss_start = .; |
Marek Vasut | 8ba1604 | 2011-12-08 09:46:12 +0000 | [diff] [blame] | 48 | *(.bss*) |
| 49 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 50 | __bss_end = .; |
Marek Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 51 | } |
| 52 | |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 53 | .end : |
| 54 | { |
| 55 | *(.__end) |
| 56 | } |
Marek Vasut | 8ba1604 | 2011-12-08 09:46:12 +0000 | [diff] [blame] | 57 | |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 58 | _image_binary_end = .; |
| 59 | |
| 60 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | 47ed5dd | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 61 | .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 Vasut | 04fe427 | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 69 | } |