vexpress.lds 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. SECTIONS
  4. {
  5. . = 0x6FC00000;
  6. __text_start = .;
  7. .text :
  8. {
  9. *(.vectors)
  10. *(.text)
  11. *(.text.*)
  12. /* section information for finsh shell */
  13. . = ALIGN(4);
  14. __fsymtab_start = .;
  15. KEEP(*(FSymTab))
  16. __fsymtab_end = .;
  17. . = ALIGN(4);
  18. __vsymtab_start = .;
  19. KEEP(*(VSymTab))
  20. __vsymtab_end = .;
  21. . = ALIGN(4);
  22. /* section information for modules */
  23. . = ALIGN(4);
  24. __rtmsymtab_start = .;
  25. KEEP(*(RTMSymTab))
  26. __rtmsymtab_end = .;
  27. /* section information for initialization */
  28. . = ALIGN(4);
  29. __rt_init_start = .;
  30. KEEP(*(SORT(.rti_fn*)))
  31. __rt_init_end = .;
  32. } =0
  33. __text_end = .;
  34. __rodata_start = .;
  35. .rodata : { *(.rodata) *(.rodata.*) }
  36. __rodata_end = .;
  37. . = ALIGN(4);
  38. .ctors :
  39. {
  40. PROVIDE(__ctors_start__ = .);
  41. /* new GCC version uses .init_array */
  42. KEEP(*(SORT(.init_array.*)))
  43. KEEP(*(.init_array))
  44. PROVIDE(__ctors_end__ = .);
  45. }
  46. .dtors :
  47. {
  48. PROVIDE(__dtors_start__ = .);
  49. KEEP(*(SORT(.dtors.*)))
  50. KEEP(*(.dtors))
  51. PROVIDE(__dtors_end__ = .);
  52. }
  53. . = ALIGN(8);
  54. __data_start = .;
  55. .data :
  56. {
  57. *(.data)
  58. *(.data.*)
  59. }
  60. __data_end = .;
  61. . = ALIGN(8);
  62. __bss_start = .;
  63. .bss :
  64. {
  65. *(.bss)
  66. *(.bss.*)
  67. *(COMMON)
  68. . = ALIGN(4);
  69. }
  70. . = ALIGN(4);
  71. __bss_end = .;
  72. /* Stabs debugging sections. */
  73. .stab 0 : { *(.stab) }
  74. .stabstr 0 : { *(.stabstr) }
  75. .stab.excl 0 : { *(.stab.excl) }
  76. .stab.exclstr 0 : { *(.stab.exclstr) }
  77. .stab.index 0 : { *(.stab.index) }
  78. .stab.indexstr 0 : { *(.stab.indexstr) }
  79. .comment 0 : { *(.comment) }
  80. _end = .;
  81. }