Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 1 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 10a451c | 2009-05-08 20:24:12 +0200 | [diff] [blame] | 2 | * (C) Copyright 2009 |
| 3 | * Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com> |
Peter Pearse | 5ca9881 | 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 | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 8 | * Copyright (c) 2004 Texas Instruments |
| 9 | * |
| 10 | * (C) Copyright 2002 |
Detlev Zundel | 792a09e | 2009-05-13 10:54:10 +0200 | [diff] [blame] | 11 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
Peter Pearse | 5ca9881 | 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 |
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | * GNU General Public License for more details. |
| 25 | * |
| 26 | * You should have received a copy of the GNU General Public License |
| 27 | * along with this program; if not, write to the Free Software |
| 28 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 29 | * MA 02111-1307 USA |
| 30 | */ |
| 31 | |
| 32 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 33 | OUTPUT_ARCH(arm) |
| 34 | ENTRY(_start) |
| 35 | SECTIONS |
| 36 | { |
| 37 | . = 0x00000000; |
| 38 | |
| 39 | . = ALIGN(4); |
Jean-Christophe PLAGNIOL-VILLARD | 10a451c | 2009-05-08 20:24:12 +0200 | [diff] [blame] | 40 | .text : |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 41 | { |
Peter Tyser | 84ad688 | 2010-04-12 22:28:11 -0500 | [diff] [blame] | 42 | arch/arm/cpu/arm1136/start.o (.text) |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 43 | *(.text) |
| 44 | } |
| 45 | |
| 46 | . = ALIGN(4); |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 47 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 48 | |
| 49 | . = ALIGN(4); |
Heiko Schocher | e48b7c0 | 2010-09-17 13:10:40 +0200 | [diff] [blame] | 50 | .data : { |
| 51 | *(.data) |
| 52 | __datarel_start = .; |
| 53 | *(.data.rel) |
| 54 | __datarelrolocal_start = .; |
| 55 | *(.data.rel.ro.local) |
| 56 | __datarellocal_start = .; |
| 57 | *(.data.rel.local) |
| 58 | __datarelro_start = .; |
| 59 | *(.data.rel.ro) |
| 60 | } |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 61 | |
| 62 | . = ALIGN(4); |
Heiko Schocher | bafe743 | 2010-10-13 07:57:14 +0200 | [diff] [blame] | 63 | __rel_dyn_start = .; |
| 64 | .rel.dyn : { *(.rel.dyn) } |
| 65 | __rel_dyn_end = .; |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 66 | |
Heiko Schocher | bafe743 | 2010-10-13 07:57:14 +0200 | [diff] [blame] | 67 | __dynsym_start = .; |
| 68 | .dynsym : { *(.dynsym) } |
| 69 | |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 70 | . = .; |
| 71 | __u_boot_cmd_start = .; |
| 72 | .u_boot_cmd : { *(.u_boot_cmd) } |
| 73 | __u_boot_cmd_end = .; |
| 74 | |
| 75 | . = ALIGN(4); |
| 76 | __bss_start = .; |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 77 | .bss (NOLOAD) : { *(.bss) . = ALIGN(4); } |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 78 | _end = .; |
Heiko Schocher | bafe743 | 2010-10-13 07:57:14 +0200 | [diff] [blame] | 79 | |
| 80 | /DISCARD/ : { *(.dynstr*) } |
| 81 | /DISCARD/ : { *(.dynamic*) } |
| 82 | /DISCARD/ : { *(.plt*) } |
| 83 | /DISCARD/ : { *(.interp*) } |
| 84 | /DISCARD/ : { *(.gnu*) } |
Peter Pearse | 5ca9881 | 2007-11-09 15:24:26 +0000 | [diff] [blame] | 85 | } |