ft_aarch32.lds 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. SECTIONS
  4. {
  5. . = 0x80100000;
  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(16 * 1024);
  54. .l1_page_table :
  55. {
  56. __l1_page_table_start = .;
  57. . += 16K;
  58. }
  59. . = ALIGN(8);
  60. __data_start = .;
  61. .data :
  62. {
  63. *(.data)
  64. *(.data.*)
  65. }
  66. __data_end = .;
  67. . = ALIGN(8);
  68. __bss_start = .;
  69. .bss :
  70. {
  71. *(.bss)
  72. *(.bss.*)
  73. *(COMMON)
  74. . = ALIGN(4);
  75. }
  76. . = ALIGN(4);
  77. __bss_end = .;
  78. .heap :
  79. {
  80. . = ALIGN(8);
  81. __end__ = .;
  82. PROVIDE(end = .);
  83. __HeapBase = .;
  84. . += 0x400;
  85. __HeapLimit = .;
  86. __heap_limit = .; /* Add for _sbrk */
  87. }
  88. /* Stabs debugging sections. */
  89. .stab 0 : { *(.stab) }
  90. .stabstr 0 : { *(.stabstr) }
  91. .stab.excl 0 : { *(.stab.excl) }
  92. .stab.exclstr 0 : { *(.stab.exclstr) }
  93. .stab.index 0 : { *(.stab.index) }
  94. .stab.indexstr 0 : { *(.stab.indexstr) }
  95. .comment 0 : { *(.comment) }
  96. _end = .;
  97. }