2009-09-22 06:53:10 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2006
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de
|
|
|
|
*
|
|
|
|
* Copyright 2009 Freescale Semiconductor, Inc.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-09-22 06:53:10 +00:00
|
|
|
*/
|
|
|
|
|
2014-04-28 01:17:10 +00:00
|
|
|
#include "config.h"
|
2011-03-22 03:57:39 +00:00
|
|
|
|
2009-09-22 06:53:10 +00:00
|
|
|
OUTPUT_ARCH(powerpc)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0xfff00000;
|
|
|
|
.text : {
|
2010-11-10 19:32:36 +00:00
|
|
|
*(.text*)
|
2010-04-15 14:07:28 +00:00
|
|
|
}
|
2009-09-22 06:53:10 +00:00
|
|
|
_etext = .;
|
|
|
|
|
|
|
|
.reloc : {
|
|
|
|
_GOT2_TABLE_ = .;
|
2010-11-10 19:32:36 +00:00
|
|
|
KEEP(*(.got2))
|
2012-05-01 21:37:57 +00:00
|
|
|
KEEP(*(.got))
|
2009-09-22 06:53:10 +00:00
|
|
|
_FIXUP_TABLE_ = .;
|
2010-11-10 19:32:36 +00:00
|
|
|
KEEP(*(.fixup))
|
2009-09-22 06:53:10 +00:00
|
|
|
}
|
2012-05-01 21:37:57 +00:00
|
|
|
__got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
|
2009-09-22 06:53:10 +00:00
|
|
|
__fixup_entries = (. - _FIXUP_TABLE_) >> 2;
|
|
|
|
|
|
|
|
. = ALIGN(8);
|
|
|
|
.data : {
|
|
|
|
*(.rodata*)
|
|
|
|
*(.data*)
|
|
|
|
*(.sdata*)
|
|
|
|
}
|
|
|
|
_edata = .;
|
|
|
|
|
2012-10-12 10:27:03 +00:00
|
|
|
.u_boot_list : {
|
2013-02-25 00:59:00 +00:00
|
|
|
KEEP(*(SORT(.u_boot_list*)));
|
2012-10-12 10:27:03 +00:00
|
|
|
}
|
|
|
|
|
2009-09-22 06:53:10 +00:00
|
|
|
. = ALIGN(8);
|
|
|
|
__init_begin = .;
|
|
|
|
__init_end = .;
|
2011-03-22 03:57:39 +00:00
|
|
|
#if defined(CONFIG_FSL_IFC) /* Restrict bootpg at 4K boundry for IFC */
|
|
|
|
.bootpg ADDR(.text) + 0x1000 :
|
|
|
|
{
|
|
|
|
start.o (.bootpg)
|
|
|
|
}
|
|
|
|
#define RESET_VECTOR_OFFSET 0x1ffc /* IFC has 8K sram */
|
|
|
|
#elif defined(CONFIG_FSL_ELBC)
|
|
|
|
#define RESET_VECTOR_OFFSET 0xffc /* LBC has 4k sram */
|
|
|
|
#else
|
|
|
|
#error unknown NAND controller
|
|
|
|
#endif
|
|
|
|
.resetvec ADDR(.text) + RESET_VECTOR_OFFSET : {
|
2010-11-10 19:32:36 +00:00
|
|
|
KEEP(*(.resetvec))
|
2009-09-22 06:53:10 +00:00
|
|
|
} = 0xffff
|
|
|
|
|
|
|
|
__bss_start = .;
|
|
|
|
.bss : {
|
2010-11-10 19:32:36 +00:00
|
|
|
*(.sbss*)
|
|
|
|
*(.bss*)
|
2009-09-22 06:53:10 +00:00
|
|
|
}
|
2013-03-14 06:54:53 +00:00
|
|
|
__bss_end = .;
|
2009-09-22 06:53:10 +00:00
|
|
|
}
|
2011-03-22 03:57:39 +00:00
|
|
|
ASSERT(__init_end <= (0xfff00000 + RESET_VECTOR_OFFSET), "NAND bootstrap too big");
|