boot.lds.S 697 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <[email protected]>
  8. * Marc Gauthier <[email protected]
  9. * Pete Delaney <[email protected]>
  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. }