boot.ld 812 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. OUTPUT_ARCH(xtensa)
  2. SECTIONS
  3. {
  4. .start 0xD1000000 : { *(.start) }
  5. .text :
  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: AT(__image_load)
  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. PROVIDE (end = .);
  55. }