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

http://github.com/mirrors/linux · Assembly · 40 lines · 26 code · 4 blank · 10 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. #include <asm/vectors.h>
  12. OUTPUT_ARCH(xtensa)
  13. ENTRY(_ResetVector)
  14. SECTIONS
  15. {
  16. .ResetVector.text XCHAL_RESET_VECTOR_VADDR :
  17. {
  18. *(.ResetVector.text)
  19. }
  20. .image KERNELOFFSET: AT (CONFIG_KERNEL_LOAD_ADDRESS)
  21. {
  22. _image_start = .;
  23. *(image)
  24. . = (. + 3) & ~ 3;
  25. _image_end = . ;
  26. }
  27. .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
  28. {
  29. __bss_start = .;
  30. *(.sbss)
  31. *(.scommon)
  32. *(.dynbss)
  33. *(.bss)
  34. __bss_end = .;
  35. }
  36. }