boot.lds.S 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. .initrd ALIGN(0x10) :
  31. {
  32. boot_initrd_start = . ;
  33. *(.initrd)
  34. boot_initrd_end = .;
  35. }
  36. . = ALIGN(0x10);
  37. __image_load = . ;
  38. .image 0xd0001000:
  39. {
  40. _image_start = .;
  41. *(image)
  42. . = (. + 3) & ~ 3;
  43. _image_end = . ;
  44. }
  45. .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
  46. {
  47. __bss_start = .;
  48. *(.sbss)
  49. *(.scommon)
  50. *(.dynbss)
  51. *(.bss)
  52. __bss_end = .;
  53. }
  54. _end = .;
  55. _param_start = .;
  56. .ResetVector.text XCHAL_RESET_VECTOR_VADDR :
  57. {
  58. *(.ResetVector.text)
  59. }
  60. PROVIDE (end = .);
  61. }