PageRenderTime 23ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/arch/xtensa/boot/boot-elf/boot.lds.S

http://github.com/mirrors/linux
Assembly | 40 lines | 36 code | 4 blank | 0 comment | 0 complexity | 27a2843100efd06b5ca37da1f2c39f69 MD5 | raw file
 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}