blob: 4a231d9df34897a318b7d953d57181b8d454dee8 [file] [log] [blame]
Chander Kashyap0d3c62e2011-05-24 20:02:57 +00001/*
2 * (C) Copyright 2011
3 * Chander Kashyap, Samsung Electronics, <k.chander@samsung.com>
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 *
11 * See file CREDITS for list of people who contributed to this
12 * project.
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of
17 * the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27 * MA 02111-1307 USA
28 */
29
30OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
31OUTPUT_ARCH(arm)
32ENTRY(_start)
33SECTIONS
34{
35 . = 0x00000000;
36
37 . = ALIGN(4);
38 .text :
39 {
40 start.o (.text)
41 *(.text)
42 }
43
44 . = ALIGN(4);
45 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
46
47 . = ALIGN(4);
48 .data : {
49 *(.data)
50 }
51
52 . = ALIGN(4);
53
54 . = .;
55 __u_boot_cmd_start = .;
56 .u_boot_cmd : { *(.u_boot_cmd) }
57 __u_boot_cmd_end = .;
58
59 . = ALIGN(4);
60
Chander Kashyapebbc84a2011-07-25 23:25:16 +000061 __image_copy_end = .;
62
Chander Kashyap0d3c62e2011-05-24 20:02:57 +000063 .rel.dyn : {
64 __rel_dyn_start = .;
65 *(.rel*)
66 __rel_dyn_end = .;
67 }
68
69 .dynsym : {
70 __dynsym_start = .;
71 *(.dynsym)
72 }
73
74 _end = .;
75
76 .bss __rel_dyn_start (OVERLAY) : {
77 __bss_start = .;
78 *(.bss)
79 . = ALIGN(4);
80 __bss_end__ = .;
81 }
82
83 /DISCARD/ : { *(.dynstr*) }
84 /DISCARD/ : { *(.dynamic*) }
85 /DISCARD/ : { *(.plt*) }
86 /DISCARD/ : { *(.interp*) }
87 /DISCARD/ : { *(.gnu*) }
88}