at91sam9g45_ram.ld 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. ENTRY(system_vectors)
  4. SECTIONS
  5. {
  6. . = 0x70000000;
  7. . = ALIGN(4);
  8. .text :
  9. {
  10. *(.vectors)
  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. . = ALIGN(4);
  24. __rt_init_start = .;
  25. KEEP(*(SORT(.rti_fn*)))
  26. __rt_init_end = .;
  27. . = ALIGN(4);
  28. /* section information for modules */
  29. . = ALIGN(4);
  30. __rtmsymtab_start = .;
  31. KEEP(*(RTMSymTab))
  32. __rtmsymtab_end = .;
  33. . = ALIGN(4);
  34. /* section information for initial. */
  35. . = ALIGN(4);
  36. __rt_init_start = .;
  37. KEEP(*(SORT(.rti_fn*)))
  38. __rt_init_end = .;
  39. . = ALIGN(4);
  40. }
  41. . = ALIGN(4);
  42. .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
  43. . = ALIGN(4);
  44. .ctors :
  45. {
  46. PROVIDE(__ctors_start__ = .);
  47. KEEP(*(SORT(.ctors.*)))
  48. KEEP(*(.ctors))
  49. PROVIDE(__ctors_end__ = .);
  50. }
  51. .dtors :
  52. {
  53. PROVIDE(__dtors_start__ = .);
  54. KEEP(*(SORT(.dtors.*)))
  55. KEEP(*(.dtors))
  56. PROVIDE(__dtors_end__ = .);
  57. }
  58. . = ALIGN(4);
  59. .data :
  60. {
  61. *(.data)
  62. *(.data.*)
  63. *(.gnu.linkonce.d*)
  64. }
  65. . = ALIGN(4);
  66. .nobss : { *(.nobss) }
  67. . = ALIGN(4);
  68. __bss_start = .;
  69. .bss : { *(.bss)}
  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. .debug_abbrev 0 : { *(.debug_abbrev) }
  80. .debug_info 0 : { *(.debug_info) }
  81. .debug_line 0 : { *(.debug_line) }
  82. .debug_pubnames 0 : { *(.debug_pubnames) }
  83. .debug_aranges 0 : { *(.debug_aranges) }
  84. _end = .;
  85. }