1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 *  linux/arch/xtensa/boot/boot-elf/boot.lds.S
4 *
5 *  Copyright (C) 2008 - 2013 by Tensilica Inc.
6 *
7 *  Chris Zankel <chris@zankel.net>
8 *  Marc Gauthier <marc@tensilica.com
9 *  Pete Delaney <piet@tensilica.com>
10 */
11
12#include <asm/vectors.h>
13OUTPUT_ARCH(xtensa)
14ENTRY(_ResetVector)
15
16SECTIONS
17{
18	.ResetVector.text XCHAL_RESET_VECTOR_VADDR :
19	{
20		*(.ResetVector.text)
21	}
22
23	.image KERNELOFFSET: AT (CONFIG_KERNEL_LOAD_ADDRESS)
24	{
25		_image_start = .;
26		*(image)
27		. = (. + 3) & ~ 3;
28		_image_end = .	;
29	}
30
31	.bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
32	{
33		__bss_start = .;
34		*(.sbss)
35		*(.scommon)
36		*(.dynbss)
37		*(.bss)
38		__bss_end = .;
39	}
40}
41