Marek Vasut | 926227e | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | 926227e | 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 | { |
| 19 | . = 0x00000000; |
| 20 | |
| 21 | . = ALIGN(4); |
| 22 | .text : |
| 23 | { |
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 | |
Marek Vasut | da6c5d5 | 2011-12-08 09:46:12 +0000 | [diff] [blame] | 52 | _end = .; |
| 53 | |
Marek Vasut | 926227e | 2011-11-08 23:18:21 +0000 | [diff] [blame] | 54 | /DISCARD/ : { *(.dynstr*) } |
| 55 | /DISCARD/ : { *(.dynsym*) } |
| 56 | /DISCARD/ : { *(.dynamic*) } |
| 57 | /DISCARD/ : { *(.hash*) } |
| 58 | /DISCARD/ : { *(.plt*) } |
| 59 | /DISCARD/ : { *(.interp*) } |
| 60 | /DISCARD/ : { *(.gnu*) } |
| 61 | } |