boot.lds.S 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include <variant/core.h>
  2. OUTPUT_ARCH(xtensa)
  3. ENTRY(_ResetVector)
  4. SECTIONS
  5. {
  6. .start 0xD0000000 : { *(.start) }
  7. .text 0xD0000000:
  8. {
  9. __reloc_start = . ;
  10. _text_start = . ;
  11. *(.literal .text.literal .text)
  12. _text_end = . ;
  13. }
  14. .rodata ALIGN(0x04):
  15. {
  16. *(.rodata)
  17. *(.rodata1)
  18. }
  19. .data ALIGN(0x04):
  20. {
  21. *(.data)
  22. *(.data1)
  23. *(.sdata)
  24. *(.sdata2)
  25. *(.got.plt)
  26. *(.got)
  27. *(.dynamic)
  28. }
  29. __reloc_end = . ;
  30. . = ALIGN(0x10);
  31. __image_load = . ;
  32. .image 0xd0001000:
  33. {
  34. _image_start = .;
  35. *(image)
  36. . = (. + 3) & ~ 3;
  37. _image_end = . ;
  38. }
  39. .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
  40. {
  41. __bss_start = .;
  42. *(.sbss)
  43. *(.scommon)
  44. *(.dynbss)
  45. *(.bss)
  46. __bss_end = .;
  47. }
  48. _end = .;
  49. _param_start = .;
  50. .ResetVector.text XCHAL_RESET_VECTOR_VADDR :
  51. {
  52. *(.ResetVector.text)
  53. }
  54. PROVIDE (end = .);
  55. }