boot.ld 867 B

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