beaglebone_ram.lds 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. SECTIONS
  4. {
  5. . = 0x80200000;
  6. __text_start = .;
  7. .text :
  8. {
  9. *(.vectors)
  10. *(.text)
  11. *(.text.*)
  12. /* section information for finsh shell */
  13. . = ALIGN(4);
  14. __fsymtab_start = .;
  15. KEEP(*(FSymTab))
  16. __fsymtab_end = .;
  17. . = ALIGN(4);
  18. __vsymtab_start = .;
  19. KEEP(*(VSymTab))
  20. __vsymtab_end = .;
  21. . = ALIGN(4);
  22. /* section information for modules */
  23. . = ALIGN(4);
  24. __rtmsymtab_start = .;
  25. KEEP(*(RTMSymTab))
  26. __rtmsymtab_end = .;
  27. /* section information for initialization */
  28. . = ALIGN(4);
  29. __rt_init_start = .;
  30. KEEP(*(SORT(.rti_fn*)))
  31. __rt_init_end = .;
  32. } =0
  33. __text_end = .;
  34. __rodata_start = .;
  35. .rodata : { *(.rodata) *(.rodata.*) }
  36. __rodata_end = .;
  37. . = ALIGN(4);
  38. .ctors :
  39. {
  40. PROVIDE(__ctors_start__ = .);
  41. KEEP(*(SORT(.ctors.*)))
  42. KEEP(*(.ctors))
  43. PROVIDE(__ctors_end__ = .);
  44. }
  45. .dtors :
  46. {
  47. PROVIDE(__dtors_start__ = .);
  48. KEEP(*(SORT(.dtors.*)))
  49. KEEP(*(.dtors))
  50. PROVIDE(__dtors_end__ = .);
  51. }
  52. __data_start = .;
  53. . = ALIGN(4);
  54. .data :
  55. {
  56. *(.data)
  57. *(.data.*)
  58. }
  59. __data_end = .;
  60. . = ALIGN(4);
  61. __bss_start = .;
  62. .bss :
  63. {
  64. *(.bss)
  65. *(.bss.*)
  66. *(COMMON)
  67. . = ALIGN(4);
  68. }
  69. . = ALIGN(4);
  70. __bss_end = .;
  71. /* Stabs debugging sections. */
  72. .stab 0 : { *(.stab) }
  73. .stabstr 0 : { *(.stabstr) }
  74. .stab.excl 0 : { *(.stab.excl) }
  75. .stab.exclstr 0 : { *(.stab.exclstr) }
  76. .stab.index 0 : { *(.stab.index) }
  77. .stab.indexstr 0 : { *(.stab.indexstr) }
  78. .comment 0 : { *(.comment) }
  79. _end = .;
  80. }