]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/freescale/mx31_3stack/u-boot.lds
applied patches from Freescale and Ka-Ro
[karo-tx-uboot.git] / board / freescale / mx31_3stack / u-boot.lds
1 /*
2  * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
3  *
4  * (C) Copyright 2002
5  * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
6  *
7  * See file CREDITS for list of people who contributed to this
8  * project.
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License as
12  * published by the Free Software Foundation; either version 2 of
13  * the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23  * MA 02111-1307 USA
24  */
25
26 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
27 OUTPUT_ARCH(arm)
28 ENTRY(reset)
29 SECTIONS
30 {
31         . = 0x00000000;
32
33         . = ALIGN(4);
34         .text      :
35         {
36           /* WARNING - the following is hand-optimized to fit within    */
37           /* the sector layout of our flash chips!      XXX FIXME XXX   */
38
39           * (.text.head)        /* arm reset handler */
40           * (.text.init)        /* lowlevel initial */
41           * (.text.load)        /* nand copy and load */
42           * (.text.setup)
43           board/freescale/mx31_3stack/libmx31_3stack.a  (.text)
44           lib_arm/libarm.a              (.text)
45           net/libnet.a                  (.text)
46           drivers/mtd/libmtd.a          (.text)
47
48           . = DEFINED(env_offset) ? env_offset : .;
49           common/env_embedded.o(.text)
50
51           *(.text)
52         }
53
54         . = ALIGN(4);
55         .rodata : { *(.rodata) }
56
57         . = ALIGN(4);
58         .data : { *(.data) }
59
60         . = ALIGN(4);
61         .got : { *(.got) }
62
63         . = .;
64         __u_boot_cmd_start = .;
65         .u_boot_cmd : { *(.u_boot_cmd) }
66         __u_boot_cmd_end = .;
67
68         . = ALIGN(4);
69         __bss_start = .;
70         .bss : { *(.bss) }
71         _end = .;
72 }