mini2440_ram.ld 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. *(.init)
  10. *(.text)
  11. *(.gnu.linkonce.t*)
  12. }
  13. . = ALIGN(4);
  14. .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
  15. . = ALIGN(4);
  16. .ctors :
  17. {
  18. PROVIDE(__ctors_start__ = .);
  19. KEEP(*(SORT(.ctors.*)))
  20. KEEP(*(.ctors))
  21. PROVIDE(__ctors_end__ = .);
  22. }
  23. .dtors :
  24. {
  25. PROVIDE(__dtors_start__ = .);
  26. KEEP(*(SORT(.dtors.*)))
  27. KEEP(*(.dtors))
  28. PROVIDE(__dtors_end__ = .);
  29. }
  30. . = ALIGN(4);
  31. .data :
  32. {
  33. *(.data)
  34. *(.data.*)
  35. *(.gnu.linkonce.d*)
  36. }
  37. . = ALIGN(4);
  38. .nobss : { *(.nobss) }
  39. . = 0x30200000;
  40. .mmu_table : { *(.mmu_table) }
  41. . = 0x30300000;
  42. . = ALIGN(4);
  43. __bss_start = .;
  44. .bss : { *(.bss) }
  45. __bss_end = .;
  46. /* stabs debugging sections. */
  47. .stab 0 : { *(.stab) }
  48. .stabstr 0 : { *(.stabstr) }
  49. .stab.excl 0 : { *(.stab.excl) }
  50. .stab.exclstr 0 : { *(.stab.exclstr) }
  51. .stab.index 0 : { *(.stab.index) }
  52. .stab.indexstr 0 : { *(.stab.indexstr) }
  53. .comment 0 : { *(.comment) }
  54. .debug_abbrev 0 : { *(.debug_abbrev) }
  55. .debug_info 0 : { *(.debug_info) }
  56. .debug_line 0 : { *(.debug_line) }
  57. .debug_pubnames 0 : { *(.debug_pubnames) }
  58. .debug_aranges 0 : { *(.debug_aranges) }
  59. _end = .;
  60. }