Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 1 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 7580b86 | 2009-05-08 20:24:12 +0200 | [diff] [blame] | 2 | * (C) Copyright 2009 |
| 3 | * Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com> |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2005-2007 Samsung Electronics |
| 6 | * Kyungin Park <kyugnmin.park@samsung.com> |
| 7 | * |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 8 | * Copyright (c) 2004 Texas Instruments |
| 9 | * |
| 10 | * (C) Copyright 2002 |
Detlev Zundel | f1b3f2b | 2009-05-13 10:54:10 +0200 | [diff] [blame] | 11 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 12 | * |
| 13 | * See file CREDITS for list of people who contributed to this |
| 14 | * project. |
| 15 | * |
| 16 | * This program is free software; you can redistribute it and/or |
| 17 | * modify it under the terms of the GNU General Public License as |
| 18 | * published by the Free Software Foundation; either version 2 of |
| 19 | * the License, or (at your option) any later version. |
| 20 | * |
| 21 | * This program is distributed in the hope that it will be useful, |
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Albert Aribaud | c6665d7 | 2010-11-15 21:46:03 +0100 | [diff] [blame] | 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 25 | * GNU General Public License for more details. |
| 26 | * |
| 27 | * You should have received a copy of the GNU General Public License |
| 28 | * along with this program; if not, write to the Free Software |
| 29 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 30 | * MA 02111-1307 USA |
| 31 | */ |
| 32 | |
| 33 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 34 | OUTPUT_ARCH(arm) |
| 35 | ENTRY(_start) |
| 36 | SECTIONS |
| 37 | { |
| 38 | . = 0x00000000; |
| 39 | |
| 40 | . = ALIGN(4); |
Jean-Christophe PLAGNIOL-VILLARD | 7580b86 | 2009-05-08 20:24:12 +0200 | [diff] [blame] | 41 | .text : |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 42 | { |
Peter Tyser | f7c6737 | 2010-04-12 22:28:11 -0500 | [diff] [blame] | 43 | arch/arm/cpu/arm1136/start.o (.text) |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 44 | *(.text) |
| 45 | } |
| 46 | |
| 47 | . = ALIGN(4); |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 48 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 49 | |
| 50 | . = ALIGN(4); |
Heiko Schocher | 504f87c | 2010-09-17 13:10:40 +0200 | [diff] [blame] | 51 | .data : { |
| 52 | *(.data) |
Heiko Schocher | 504f87c | 2010-09-17 13:10:40 +0200 | [diff] [blame] | 53 | } |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 54 | |
| 55 | . = ALIGN(4); |
Heiko Schocher | 429ddf6 | 2010-10-13 07:57:14 +0200 | [diff] [blame] | 56 | |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 57 | . = .; |
| 58 | __u_boot_cmd_start = .; |
| 59 | .u_boot_cmd : { *(.u_boot_cmd) } |
| 60 | __u_boot_cmd_end = .; |
| 61 | |
| 62 | . = ALIGN(4); |
Albert Aribaud | c6665d7 | 2010-11-15 21:46:03 +0100 | [diff] [blame] | 63 | |
| 64 | .rel.dyn : { |
| 65 | __rel_dyn_start = .; |
| 66 | *(.rel*) |
| 67 | __rel_dyn_end = .; |
| 68 | } |
| 69 | |
| 70 | .dynsym : { |
| 71 | __dynsym_start = .; |
| 72 | *(.dynsym) |
| 73 | } |
| 74 | |
Po-Yu Chuang | 1864b00 | 2011-03-01 23:02:04 +0000 | [diff] [blame] | 75 | _end = .; |
| 76 | |
Albert Aribaud | c6665d7 | 2010-11-15 21:46:03 +0100 | [diff] [blame] | 77 | .bss __rel_dyn_start (OVERLAY) : { |
| 78 | __bss_start = .; |
| 79 | *(.bss) |
| 80 | . = ALIGN(4); |
Po-Yu Chuang | cedbf4b | 2011-03-01 22:59:59 +0000 | [diff] [blame] | 81 | __bss_end__ = .; |
Albert Aribaud | c6665d7 | 2010-11-15 21:46:03 +0100 | [diff] [blame] | 82 | } |
Heiko Schocher | 429ddf6 | 2010-10-13 07:57:14 +0200 | [diff] [blame] | 83 | |
| 84 | /DISCARD/ : { *(.dynstr*) } |
| 85 | /DISCARD/ : { *(.dynamic*) } |
| 86 | /DISCARD/ : { *(.plt*) } |
| 87 | /DISCARD/ : { *(.interp*) } |
| 88 | /DISCARD/ : { *(.gnu*) } |
Peter Pearse | ba348b5 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 89 | } |