2008-04-14 08:53:12 +00:00
|
|
|
/*
|
|
|
|
* January 2004 - Changed to support H4 device
|
|
|
|
* Copyright (c) 2004 Texas Instruments
|
|
|
|
*
|
|
|
|
* (C) Copyright 2002
|
2009-05-13 08:54:10 +00:00
|
|
|
* Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
|
2008-04-14 08:53:12 +00:00
|
|
|
*
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
* project.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
|
|
OUTPUT_ARCH(arm)
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x00000000;
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.text :
|
|
|
|
{
|
2013-06-11 12:17:33 +00:00
|
|
|
*(.__image_copy_start)
|
2008-04-03 15:04:22 +00:00
|
|
|
/* WARNING - the following is hand-optimized to fit within */
|
|
|
|
/* the sector layout of our flash chips! XXX FIXME XXX */
|
|
|
|
|
2013-04-11 09:36:03 +00:00
|
|
|
arch/arm/cpu/arm1136/start.o (.text*)
|
|
|
|
board/freescale/mx31ads/libmx31ads.o (.text*)
|
|
|
|
arch/arm/lib/libarm.o (.text*)
|
|
|
|
net/libnet.o (.text*)
|
|
|
|
drivers/mtd/libmtd.o (.text*)
|
2008-04-03 15:04:22 +00:00
|
|
|
|
|
|
|
. = DEFINED(env_offset) ? env_offset : .;
|
2013-04-11 09:36:03 +00:00
|
|
|
common/env_embedded.o(.text*)
|
2008-04-03 15:04:22 +00:00
|
|
|
|
2013-04-11 09:36:03 +00:00
|
|
|
*(.text*)
|
2008-04-14 08:53:12 +00:00
|
|
|
}
|
|
|
|
. = ALIGN(4);
|
2013-04-11 09:36:03 +00:00
|
|
|
.rodata : { *(.rodata*) }
|
2008-04-14 08:53:12 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
2011-06-05 06:26:49 +00:00
|
|
|
.data : {
|
2013-04-11 09:36:03 +00:00
|
|
|
*(.data*)
|
2011-06-05 06:26:49 +00:00
|
|
|
}
|
2008-04-14 08:53:12 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
2012-10-12 10:27:03 +00:00
|
|
|
. = ALIGN(4);
|
|
|
|
.u_boot_list : {
|
2013-02-25 00:59:00 +00:00
|
|
|
KEEP(*(SORT(.u_boot_list*)));
|
2012-10-12 10:27:03 +00:00
|
|
|
}
|
2008-04-14 08:53:12 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
2011-06-05 06:26:49 +00:00
|
|
|
|
2013-06-11 12:17:33 +00:00
|
|
|
.image_copy_end :
|
|
|
|
{
|
|
|
|
*(.__image_copy_end)
|
|
|
|
}
|
2012-10-10 21:11:41 +00:00
|
|
|
|
2013-06-11 12:17:34 +00:00
|
|
|
.rel_dyn_start :
|
|
|
|
{
|
|
|
|
*(.__rel_dyn_start)
|
|
|
|
}
|
|
|
|
|
2011-06-05 06:26:49 +00:00
|
|
|
.rel.dyn : {
|
|
|
|
*(.rel*)
|
2013-06-11 12:17:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.rel_dyn_end :
|
|
|
|
{
|
|
|
|
*(.__rel_dyn_end)
|
2011-06-05 06:26:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
_end = .;
|
|
|
|
|
2013-04-11 05:43:21 +00:00
|
|
|
/*
|
|
|
|
* Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
|
|
|
|
* __bss_base and __bss_limit are for linker only (overlay ordering)
|
|
|
|
*/
|
|
|
|
|
2013-02-25 00:58:59 +00:00
|
|
|
.bss_start __rel_dyn_start (OVERLAY) : {
|
|
|
|
KEEP(*(.__bss_start));
|
2013-04-11 05:43:21 +00:00
|
|
|
__bss_base = .;
|
2013-02-25 00:58:59 +00:00
|
|
|
}
|
|
|
|
|
2013-04-11 05:43:21 +00:00
|
|
|
.bss __bss_base (OVERLAY) : {
|
2013-02-25 00:58:59 +00:00
|
|
|
*(.bss*)
|
2011-06-05 06:26:49 +00:00
|
|
|
. = ALIGN(4);
|
2013-04-11 05:43:21 +00:00
|
|
|
__bss_limit = .;
|
2013-02-25 00:58:59 +00:00
|
|
|
}
|
2013-04-11 05:43:21 +00:00
|
|
|
.bss_end __bss_limit (OVERLAY) : {
|
|
|
|
KEEP(*(.__bss_end));
|
2011-06-05 06:26:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/DISCARD/ : { *(.bss*) }
|
2013-06-11 12:17:31 +00:00
|
|
|
/DISCARD/ : { *(.dynsym) }
|
2011-06-05 06:26:49 +00:00
|
|
|
/DISCARD/ : { *(.dynstr*) }
|
|
|
|
/DISCARD/ : { *(.dynsym*) }
|
|
|
|
/DISCARD/ : { *(.dynamic*) }
|
|
|
|
/DISCARD/ : { *(.hash*) }
|
|
|
|
/DISCARD/ : { *(.plt*) }
|
|
|
|
/DISCARD/ : { *(.interp*) }
|
|
|
|
/DISCARD/ : { *(.gnu*) }
|
2008-04-14 08:53:12 +00:00
|
|
|
}
|