mini2440_ram.ld 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. /* section information for modules */
  24. . = ALIGN(4);
  25. __rtmsymtab_start = .;
  26. KEEP(*(RTMSymTab))
  27. __rtmsymtab_end = .;
  28. }
  29. . = ALIGN(4);
  30. .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
  31. . = ALIGN(4);
  32. .ctors :
  33. {
  34. PROVIDE(__ctors_start__ = .);
  35. KEEP(*(SORT(.ctors.*)))
  36. KEEP(*(.ctors))
  37. PROVIDE(__ctors_end__ = .);
  38. }
  39. .dtors :
  40. {
  41. PROVIDE(__dtors_start__ = .);
  42. KEEP(*(SORT(.dtors.*)))
  43. KEEP(*(.dtors))
  44. PROVIDE(__dtors_end__ = .);
  45. }
  46. . = ALIGN(4);
  47. .data :
  48. {
  49. *(.data)
  50. *(.data.*)
  51. *(.gnu.linkonce.d*)
  52. }
  53. . = ALIGN(4);
  54. .nobss : { *(.nobss) }
  55. . = 0x30200000;
  56. . = ALIGN(4);
  57. __bss_start = .;
  58. .bss : { *(.bss) }
  59. __bss_end = .;
  60. /* stabs debugging sections. */
  61. .stab 0 : { *(.stab) }
  62. .stabstr 0 : { *(.stabstr) }
  63. .stab.excl 0 : { *(.stab.excl) }
  64. .stab.exclstr 0 : { *(.stab.exclstr) }
  65. .stab.index 0 : { *(.stab.index) }
  66. .stab.indexstr 0 : { *(.stab.indexstr) }
  67. .comment 0 : { *(.comment) }
  68. .debug_abbrev 0 : { *(.debug_abbrev) }
  69. .debug_info 0 : { *(.debug_info) }
  70. .debug_line 0 : { *(.debug_line) }
  71. .debug_pubnames 0 : { *(.debug_pubnames) }
  72. .debug_aranges 0 : { *(.debug_aranges) }
  73. _end = .;
  74. }