at91sam9260_ram.ld 2.2 KB

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