mini2440_ram.ld 1.5 KB

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