eagle.app.v6.new.1024.app1.ld 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /* This linker script generated from xt-genldscripts.tpp for LSP . */
  2. /* Linker Script for ld -N */
  3. MEMORY
  4. {
  5. dport0_0_seg : org = 0x3FF00000, len = 0x10
  6. dram0_0_seg : org = 0x3FFE8000, len = 0x14000
  7. iram1_0_seg : org = 0x40100000, len = 0x8000
  8. irom0_0_seg : org = 0x40201010, len = 0x6B000
  9. }
  10. PHDRS
  11. {
  12. dport0_0_phdr PT_LOAD;
  13. dram0_0_phdr PT_LOAD;
  14. dram0_0_bss_phdr PT_LOAD;
  15. iram1_0_phdr PT_LOAD;
  16. irom0_0_phdr PT_LOAD;
  17. }
  18. /* Default entry point: */
  19. ENTRY(call_user_start)
  20. EXTERN(_DebugExceptionVector)
  21. EXTERN(_DoubleExceptionVector)
  22. EXTERN(_KernelExceptionVector)
  23. EXTERN(_NMIExceptionVector)
  24. EXTERN(_UserExceptionVector)
  25. PROVIDE(_memmap_vecbase_reset = 0x40000000);
  26. /* Various memory-map dependent cache attribute settings: */
  27. _memmap_cacheattr_wb_base = 0x00000110;
  28. _memmap_cacheattr_wt_base = 0x00000110;
  29. _memmap_cacheattr_bp_base = 0x00000220;
  30. _memmap_cacheattr_unused_mask = 0xFFFFF00F;
  31. _memmap_cacheattr_wb_trapnull = 0x2222211F;
  32. _memmap_cacheattr_wba_trapnull = 0x2222211F;
  33. _memmap_cacheattr_wbna_trapnull = 0x2222211F;
  34. _memmap_cacheattr_wt_trapnull = 0x2222211F;
  35. _memmap_cacheattr_bp_trapnull = 0x2222222F;
  36. _memmap_cacheattr_wb_strict = 0xFFFFF11F;
  37. _memmap_cacheattr_wt_strict = 0xFFFFF11F;
  38. _memmap_cacheattr_bp_strict = 0xFFFFF22F;
  39. _memmap_cacheattr_wb_allvalid = 0x22222112;
  40. _memmap_cacheattr_wt_allvalid = 0x22222112;
  41. _memmap_cacheattr_bp_allvalid = 0x22222222;
  42. PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
  43. SECTIONS
  44. {
  45. .dport0.rodata : ALIGN(4)
  46. {
  47. _dport0_rodata_start = ABSOLUTE(.);
  48. *(.dport0.rodata)
  49. *(.dport.rodata)
  50. _dport0_rodata_end = ABSOLUTE(.);
  51. } >dport0_0_seg :dport0_0_phdr
  52. .dport0.literal : ALIGN(4)
  53. {
  54. _dport0_literal_start = ABSOLUTE(.);
  55. *(.dport0.literal)
  56. *(.dport.literal)
  57. _dport0_literal_end = ABSOLUTE(.);
  58. } >dport0_0_seg :dport0_0_phdr
  59. .dport0.data : ALIGN(4)
  60. {
  61. _dport0_data_start = ABSOLUTE(.);
  62. *(.dport0.data)
  63. *(.dport.data)
  64. _dport0_data_end = ABSOLUTE(.);
  65. } >dport0_0_seg :dport0_0_phdr
  66. .data : ALIGN(4)
  67. {
  68. _data_start = ABSOLUTE(.);
  69. *(.data)
  70. *(.data.*)
  71. *(.gnu.linkonce.d.*)
  72. *(.data1)
  73. *(.sdata)
  74. *(.sdata.*)
  75. *(.gnu.linkonce.s.*)
  76. *(.sdata2)
  77. *(.sdata2.*)
  78. *(.gnu.linkonce.s2.*)
  79. *(.jcr)
  80. _data_end = ABSOLUTE(.);
  81. } >dram0_0_seg :dram0_0_phdr
  82. .rodata : ALIGN(4)
  83. {
  84. _rodata_start = ABSOLUTE(.);
  85. *(.sdk.version)
  86. *(.rodata)
  87. *(.rodata.*)
  88. *(.gnu.linkonce.r.*)
  89. *(.rodata1)
  90. __XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
  91. *(.xt_except_table)
  92. *(.gcc_except_table)
  93. *(.gnu.linkonce.e.*)
  94. *(.gnu.version_r)
  95. *(.eh_frame)
  96. /* C++ constructor and destructor tables, properly ordered: */
  97. KEEP (*crtbegin.o(.ctors))
  98. KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
  99. KEEP (*(SORT(.ctors.*)))
  100. KEEP (*(.ctors))
  101. KEEP (*crtbegin.o(.dtors))
  102. KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
  103. KEEP (*(SORT(.dtors.*)))
  104. KEEP (*(.dtors))
  105. /* C++ exception handlers table: */
  106. __XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
  107. *(.xt_except_desc)
  108. *(.gnu.linkonce.h.*)
  109. __XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
  110. *(.xt_except_desc_end)
  111. *(.dynamic)
  112. *(.gnu.version_d)
  113. . = ALIGN(4); /* this table MUST be 4-byte aligned */
  114. _bss_table_start = ABSOLUTE(.);
  115. LONG(_bss_start)
  116. LONG(_bss_end)
  117. _bss_table_end = ABSOLUTE(.);
  118. _rodata_end = ABSOLUTE(.);
  119. } >dram0_0_seg :dram0_0_phdr
  120. .bss ALIGN(8) (NOLOAD) : ALIGN(4)
  121. {
  122. . = ALIGN (8);
  123. _bss_start = ABSOLUTE(.);
  124. *(.dynsbss)
  125. *(.sbss)
  126. *(.sbss.*)
  127. *(.gnu.linkonce.sb.*)
  128. *(.scommon)
  129. *(.sbss2)
  130. *(.sbss2.*)
  131. *(.gnu.linkonce.sb2.*)
  132. *(.dynbss)
  133. *(.bss)
  134. *(.bss.*)
  135. *(.gnu.linkonce.b.*)
  136. *(COMMON)
  137. . = ALIGN (8);
  138. _bss_end = ABSOLUTE(.);
  139. _heap_start = ABSOLUTE(.);
  140. /* _stack_sentry = ALIGN(0x8); */
  141. } >dram0_0_seg :dram0_0_bss_phdr
  142. /* __stack = 0x3ffc8000; */
  143. .irom0.text : ALIGN(4)
  144. {
  145. _irom0_text_start = ABSOLUTE(.);
  146. *libmbedtls.a:(.literal .text .literal.* .text.*)
  147. *(.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
  148. _irom0_text_end = ABSOLUTE(.);
  149. } >irom0_0_seg :irom0_0_phdr
  150. .text : ALIGN(4)
  151. {
  152. _stext = .;
  153. _text_start = ABSOLUTE(.);
  154. *(.UserEnter.text)
  155. . = ALIGN(16);
  156. *(.DebugExceptionVector.text)
  157. . = ALIGN(16);
  158. *(.NMIExceptionVector.text)
  159. . = ALIGN(16);
  160. *(.KernelExceptionVector.text)
  161. LONG(0)
  162. LONG(0)
  163. LONG(0)
  164. LONG(0)
  165. . = ALIGN(16);
  166. *(.UserExceptionVector.text)
  167. LONG(0)
  168. LONG(0)
  169. LONG(0)
  170. LONG(0)
  171. . = ALIGN(16);
  172. *(.DoubleExceptionVector.text)
  173. LONG(0)
  174. LONG(0)
  175. LONG(0)
  176. LONG(0)
  177. . = ALIGN (16);
  178. *(.entry.text)
  179. *(.init.literal)
  180. *(.init)
  181. *(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
  182. *(.fini.literal)
  183. *(.fini)
  184. *(.gnu.version)
  185. _text_end = ABSOLUTE(.);
  186. _etext = .;
  187. } >iram1_0_seg :iram1_0_phdr
  188. .lit4 : ALIGN(4)
  189. {
  190. _lit4_start = ABSOLUTE(.);
  191. *(*.lit4)
  192. *(.lit4.*)
  193. *(.gnu.linkonce.lit4.*)
  194. _lit4_end = ABSOLUTE(.);
  195. } >iram1_0_seg :iram1_0_phdr
  196. }
  197. /* get ROM code address */
  198. INCLUDE "../ld/eagle.rom.addr.v6.ld"