blob: fc0418afd1b97f3d4203a2bed6077c146dd202c8 [file] [log] [blame]
Marek Vasut04fe4272011-11-08 23:18:21 +00001/*
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 *
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 {
Otavio Salvador3a0398d2012-08-05 09:05:29 +000040 arch/arm/cpu/arm926ejs/mxs/start.o (.text)
Marek Vasut04fe4272011-11-08 23:18:21 +000041 *(.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);
Marek Vasut04fe4272011-11-08 23:18:21 +000053
Marek Vasut55675142012-10-12 10:27:03 +000054 .u_boot_list : {
55 #include <u-boot.lst>
56 }
57
Marek Vasut04fe4272011-11-08 23:18:21 +000058 . = ALIGN(4);
59
60 .rel.dyn : {
61 __rel_dyn_start = .;
62 *(.rel*)
63 __rel_dyn_end = .;
64 }
65
66 .dynsym : {
67 __dynsym_start = .;
68 *(.dynsym)
69 }
70
Marek Vasut8ba16042011-12-08 09:46:12 +000071 .bss : {
72 . = ALIGN(4);
Marek Vasut04fe4272011-11-08 23:18:21 +000073 __bss_start = .;
Marek Vasut8ba16042011-12-08 09:46:12 +000074 *(.bss*)
75 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000076 __bss_end = .;
Marek Vasut04fe4272011-11-08 23:18:21 +000077 }
78
Marek Vasut8ba16042011-12-08 09:46:12 +000079 _end = .;
80
Marek Vasut04fe4272011-11-08 23:18:21 +000081 /DISCARD/ : { *(.dynstr*) }
82 /DISCARD/ : { *(.dynsym*) }
83 /DISCARD/ : { *(.dynamic*) }
84 /DISCARD/ : { *(.hash*) }
85 /DISCARD/ : { *(.plt*) }
86 /DISCARD/ : { *(.interp*) }
87 /DISCARD/ : { *(.gnu*) }
88}