Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 2 | /* |
| 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 Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 14 | OUTPUT_ARCH(arm) |
| 15 | ENTRY(_start) |
| 16 | SECTIONS |
| 17 | { |
Tom Rini | 2aaa27d | 2019-01-22 17:09:26 -0500 | [diff] [blame] | 18 | . = IMAGE_TEXT_BASE; |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 19 | |
| 20 | . = ALIGN(4); |
| 21 | .text : |
| 22 | { |
Benoît Thébaudeau | 3f7740f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 23 | *(.vectors) |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 24 | arch/arm/cpu/arm926ejs/mxs/start.o (.text*) |
| 25 | *(.text*) |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | . = ALIGN(4); |
| 29 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 30 | |
| 31 | . = ALIGN(4); |
| 32 | .data : { |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 33 | *(.data*) |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | . = ALIGN(4); |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 37 | |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 38 | .rel.dyn : { |
| 39 | __rel_dyn_start = .; |
| 40 | *(.rel*) |
| 41 | __rel_dyn_end = .; |
| 42 | } |
| 43 | |
Marek Vasut | da6c5d5 | 2011-12-08 09:46:12 +0000 | [diff] [blame] | 44 | .bss : { |
| 45 | . = ALIGN(4); |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 46 | __bss_start = .; |
Marek Vasut | da6c5d5 | 2011-12-08 09:46:12 +0000 | [diff] [blame] | 47 | *(.bss*) |
| 48 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 49 | __bss_end = .; |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 50 | } |
| 51 | |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 52 | .end : |
| 53 | { |
| 54 | *(.__end) |
| 55 | } |
| 56 | |
| 57 | _image_binary_end = .; |
Marek Vasut | da6c5d5 | 2011-12-08 09:46:12 +0000 | [diff] [blame] | 58 | |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 59 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | 95fc6d6 | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 60 | .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 Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 68 | } |