1
0

sdram.ld 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. ENTRY(entry)
  4. SECTIONS
  5. {
  6. . = 0x20000000;
  7. entry = .;
  8. . = ALIGN(4);
  9. .text :
  10. {
  11. *(.init)
  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. }
  35. . = ALIGN(4);
  36. .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
  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. . = ALIGN(4);
  53. .data :
  54. {
  55. *(.data)
  56. *(.data.*)
  57. *(.gnu.linkonce.d*)
  58. }
  59. . = ALIGN(4);
  60. .nobss : { *(.nobss) }
  61. . = ALIGN(4);
  62. __bss_start__ = .;
  63. .bss : { *(.bss)}
  64. __bss_end__ = .;
  65. /* stabs debugging sections. */
  66. .stab 0 : { *(.stab) }
  67. .stabstr 0 : { *(.stabstr) }
  68. .stab.excl 0 : { *(.stab.excl) }
  69. .stab.exclstr 0 : { *(.stab.exclstr) }
  70. .stab.index 0 : { *(.stab.index) }
  71. .stab.indexstr 0 : { *(.stab.indexstr) }
  72. .comment 0 : { *(.comment) }
  73. .debug_abbrev 0 : { *(.debug_abbrev) }
  74. .debug_info 0 : { *(.debug_info) }
  75. .debug_line 0 : { *(.debug_line) }
  76. .debug_pubnames 0 : { *(.debug_pubnames) }
  77. .debug_aranges 0 : { *(.debug_aranges) }
  78. _end = .;
  79. }