2019-06-04 16:11:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-12-03 19:01:43 +08:00
|
|
|
/*
|
|
|
|
* linux/arch/xtensa/boot/boot-elf/boot.lds.S
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 - 2013 by Tensilica Inc.
|
|
|
|
*
|
|
|
|
* Chris Zankel <chris@zankel.net>
|
|
|
|
* Marc Gauthier <marc@tensilica.com
|
|
|
|
* Pete Delaney <piet@tensilica.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm/vectors.h>
|
2005-06-24 13:01:12 +08:00
|
|
|
OUTPUT_ARCH(xtensa)
|
2007-10-24 07:40:24 +08:00
|
|
|
ENTRY(_ResetVector)
|
2005-06-24 13:01:12 +08:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2012-12-03 19:01:43 +08:00
|
|
|
.ResetVector.text XCHAL_RESET_VECTOR_VADDR :
|
2005-06-24 13:01:12 +08:00
|
|
|
{
|
2012-12-03 19:01:43 +08:00
|
|
|
*(.ResetVector.text)
|
2005-06-24 13:01:12 +08:00
|
|
|
}
|
|
|
|
|
2016-04-13 10:20:02 +08:00
|
|
|
.image KERNELOFFSET: AT (CONFIG_KERNEL_LOAD_ADDRESS)
|
2005-06-24 13:01:12 +08:00
|
|
|
{
|
|
|
|
_image_start = .;
|
|
|
|
*(image)
|
|
|
|
. = (. + 3) & ~ 3;
|
|
|
|
_image_end = . ;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
|
|
|
|
{
|
|
|
|
__bss_start = .;
|
|
|
|
*(.sbss)
|
|
|
|
*(.scommon)
|
|
|
|
*(.dynbss)
|
|
|
|
*(.bss)
|
|
|
|
__bss_end = .;
|
|
|
|
}
|
|
|
|
}
|