mini2440_ram.ld 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. ENTRY(_start)
  4. SECTIONS
  5. {
  6. . = 0x30000000;
  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. . = 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. }
  34. . = ALIGN(4);
  35. .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
  36. . = ALIGN(4);
  37. .ctors :
  38. {
  39. PROVIDE(__ctors_start__ = .);
  40. KEEP(*(SORT(.ctors.*)))
  41. KEEP(*(.ctors))
  42. PROVIDE(__ctors_end__ = .);
  43. }
  44. .dtors :
  45. {
  46. PROVIDE(__dtors_start__ = .);
  47. KEEP(*(SORT(.dtors.*)))
  48. KEEP(*(.dtors))
  49. PROVIDE(__dtors_end__ = .);
  50. }
  51. . = ALIGN(4);
  52. .data :
  53. {
  54. *(.data)
  55. *(.data.*)
  56. *(.gnu.linkonce.d*)
  57. }
  58. . = ALIGN(4);
  59. .nobss : { *(.nobss) }
  60. . = 0x30200000;
  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. }