2007-09-11 08:21:10 +00:00
|
|
|
/*
|
2009-12-15 08:11:09 +00:00
|
|
|
* barebox - barebox.lds.S
|
2007-09-11 08:21:10 +00:00
|
|
|
*
|
|
|
|
* Copyright (c) 2005-2007 Analog Device Inc.
|
|
|
|
*
|
|
|
|
* (C) Copyright 2000-2004
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
2009-12-15 08:11:09 +00:00
|
|
|
#include <asm-generic/barebox.lds.h>
|
2007-09-11 08:21:10 +00:00
|
|
|
|
|
|
|
OUTPUT_ARCH("bfin")
|
|
|
|
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib);
|
|
|
|
/* Do we need any of these for elf?
|
|
|
|
__DYNAMIC = 0; */
|
|
|
|
/*
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
ram : ORIGIN = (0x2000000), LENGTH = (256 * 1024)
|
|
|
|
l1_code : ORIGIN = 0xFFA00000, LENGTH = 0xC000
|
|
|
|
l1_data : ORIGIN = 0xFF900000, LENGTH = 0x4000
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2007-09-28 18:35:40 +00:00
|
|
|
. = TEXT_BASE;
|
2007-09-11 08:21:10 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.text :
|
|
|
|
{
|
2007-09-28 18:35:40 +00:00
|
|
|
__stext = .;
|
|
|
|
__text = .;
|
|
|
|
_text = .;
|
2007-09-11 08:21:10 +00:00
|
|
|
*(.text_entry)
|
|
|
|
*(.text)
|
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.rodata : { *(.rodata) }
|
|
|
|
|
2007-09-28 18:35:40 +00:00
|
|
|
__etext = .; /* End of text and rodata section */
|
2013-01-15 13:48:48 +00:00
|
|
|
__sdata = .;
|
2007-09-28 18:35:40 +00:00
|
|
|
|
2007-09-11 08:21:10 +00:00
|
|
|
. = ALIGN(4);
|
|
|
|
.data : { *(.data) }
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.got : { *(.got) }
|
|
|
|
|
|
|
|
. = .;
|
2009-12-15 08:11:09 +00:00
|
|
|
___barebox_cmd_start = .;
|
|
|
|
.barebox_cmd : { BAREBOX_CMDS }
|
|
|
|
___barebox_cmd_end = .;
|
2007-09-11 08:21:10 +00:00
|
|
|
|
2015-01-29 02:51:12 +00:00
|
|
|
___barebox_magicvar_start = .;
|
2011-11-26 20:33:59 +00:00
|
|
|
.barebox_magicvar : { BAREBOX_MAGICVARS }
|
2015-01-29 02:51:12 +00:00
|
|
|
___barebox_magicvar_end = .;
|
2011-11-26 20:33:59 +00:00
|
|
|
|
2009-12-15 08:11:09 +00:00
|
|
|
___barebox_initcalls_start = .;
|
|
|
|
.barebox_initcalls : { INITCALLS }
|
|
|
|
___barebox_initcalls_end = .;
|
2007-09-11 08:21:10 +00:00
|
|
|
|
2007-10-07 12:32:08 +00:00
|
|
|
___usymtab_start = .;
|
2009-12-15 08:11:09 +00:00
|
|
|
__usymtab : { BAREBOX_SYMS }
|
2007-10-07 12:32:08 +00:00
|
|
|
___usymtab_end = .;
|
2007-10-01 08:23:49 +00:00
|
|
|
|
2013-01-15 13:48:48 +00:00
|
|
|
__edata = .;
|
2007-09-11 08:21:10 +00:00
|
|
|
. = ALIGN(4);
|
2011-12-07 12:05:22 +00:00
|
|
|
___bss_start = .;
|
2007-09-11 08:21:10 +00:00
|
|
|
.bss : { *(.bss) }
|
2011-12-07 12:05:22 +00:00
|
|
|
___bss_stop = .;
|
2007-09-11 08:21:10 +00:00
|
|
|
_end = .;
|
|
|
|
}
|
|
|
|
|