boot.lds.S 843 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  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. #include <asm/vectors.h>
  15. OUTPUT_ARCH(xtensa)
  16. ENTRY(_ResetVector)
  17. SECTIONS
  18. {
  19. .ResetVector.text XCHAL_RESET_VECTOR_VADDR :
  20. {
  21. *(.ResetVector.text)
  22. }
  23. .image KERNELOFFSET: AT (CONFIG_KERNEL_LOAD_ADDRESS)
  24. {
  25. _image_start = .;
  26. *(image)
  27. . = (. + 3) & ~ 3;
  28. _image_end = . ;
  29. }
  30. .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
  31. {
  32. __bss_start = .;
  33. *(.sbss)
  34. *(.scommon)
  35. *(.dynbss)
  36. *(.bss)
  37. __bss_end = .;
  38. }
  39. }