blob: a30993054e9cc6c5b1e131357a2b833b01ba7284 [file] [log] [blame]
Max Filippove85e3352012-12-03 15:01:43 +04001/*
2 * linux/arch/xtensa/boot/boot-elf/boot.lds.S
3 *
4 * Copyright (C) 2008 - 2013 by Tensilica Inc.
5 *
6 * Chris Zankel <chris@zankel.net>
7 * Marc Gauthier <marc@tensilica.com
8 * Pete Delaney <piet@tensilica.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15#include <asm/vectors.h>
Chris Zankel4bedea92005-06-23 22:01:12 -070016OUTPUT_ARCH(xtensa)
Marc Gauthiered3174d2007-10-23 16:40:24 -070017ENTRY(_ResetVector)
Chris Zankel4bedea92005-06-23 22:01:12 -070018
19SECTIONS
20{
Max Filippove85e3352012-12-03 15:01:43 +040021 .ResetVector.text XCHAL_RESET_VECTOR_VADDR :
Chris Zankel4bedea92005-06-23 22:01:12 -070022 {
Max Filippove85e3352012-12-03 15:01:43 +040023 *(.ResetVector.text)
Chris Zankel4bedea92005-06-23 22:01:12 -070024 }
25
Max Filippova9f2fc62016-04-13 05:20:02 +030026 .image KERNELOFFSET: AT (CONFIG_KERNEL_LOAD_ADDRESS)
Chris Zankel4bedea92005-06-23 22:01:12 -070027 {
28 _image_start = .;
29 *(image)
30 . = (. + 3) & ~ 3;
31 _image_end = . ;
32 }
33
Chris Zankel4bedea92005-06-23 22:01:12 -070034 .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
35 {
36 __bss_start = .;
37 *(.sbss)
38 *(.scommon)
39 *(.dynbss)
40 *(.bss)
41 __bss_end = .;
42 }
Chris Zankel4bedea92005-06-23 22:01:12 -070043}