dm365_ram.ld 1.7 KB

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