Firmware for MNT ZZ9000 graphics and ARM coprocessor card for Amiga computers.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lscript.ld 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. /*******************************************************************/
  2. /* */
  3. /* This file is automatically generated by linker script generator.*/
  4. /* */
  5. /* Version: 2018.3 */
  6. /* */
  7. /* Copyright (c) 2010-2016 Xilinx, Inc. All rights reserved. */
  8. /* */
  9. /* Description : Cortex-A9 Linker Script */
  10. /* */
  11. /*******************************************************************/
  12. _STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x4000;
  13. _HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x30000000;
  14. _ABORT_STACK_SIZE = DEFINED(_ABORT_STACK_SIZE) ? _ABORT_STACK_SIZE : 1024;
  15. _SUPERVISOR_STACK_SIZE = DEFINED(_SUPERVISOR_STACK_SIZE) ? _SUPERVISOR_STACK_SIZE : 2048;
  16. _IRQ_STACK_SIZE = DEFINED(_IRQ_STACK_SIZE) ? _IRQ_STACK_SIZE : 1024;
  17. _FIQ_STACK_SIZE = DEFINED(_FIQ_STACK_SIZE) ? _FIQ_STACK_SIZE : 1024;
  18. _UNDEF_STACK_SIZE = DEFINED(_UNDEF_STACK_SIZE) ? _UNDEF_STACK_SIZE : 1024;
  19. /* Define Memories in the system */
  20. MEMORY
  21. {
  22. ps7_ddr_0 : ORIGIN = 0x100000, LENGTH = 0x3FF00000
  23. ps7_ram_0 : ORIGIN = 0x0, LENGTH = 0x30000
  24. ps7_ram_1 : ORIGIN = 0xFFFF0000, LENGTH = 0xFE00
  25. }
  26. /* Specify the default entry point to the program */
  27. ENTRY(_vector_table)
  28. /* Define the sections, and where they are mapped in memory */
  29. SECTIONS
  30. {
  31. .text : {
  32. KEEP (*(.vectors))
  33. *(.boot)
  34. *(.text)
  35. *(.text.*)
  36. *(.gnu.linkonce.t.*)
  37. *(.plt)
  38. *(.gnu_warning)
  39. *(.gcc_execpt_table)
  40. *(.glue_7)
  41. *(.glue_7t)
  42. *(.vfp11_veneer)
  43. *(.ARM.extab)
  44. *(.gnu.linkonce.armextab.*)
  45. } > ps7_ddr_0
  46. .init : {
  47. KEEP (*(.init))
  48. } > ps7_ddr_0
  49. .fini : {
  50. KEEP (*(.fini))
  51. } > ps7_ddr_0
  52. .rodata : {
  53. __rodata_start = .;
  54. *(.rodata)
  55. *(.rodata.*)
  56. *(.gnu.linkonce.r.*)
  57. __rodata_end = .;
  58. } > ps7_ddr_0
  59. .rodata1 : {
  60. __rodata1_start = .;
  61. *(.rodata1)
  62. *(.rodata1.*)
  63. __rodata1_end = .;
  64. } > ps7_ddr_0
  65. .sdata2 : {
  66. __sdata2_start = .;
  67. *(.sdata2)
  68. *(.sdata2.*)
  69. *(.gnu.linkonce.s2.*)
  70. __sdata2_end = .;
  71. } > ps7_ddr_0
  72. .sbss2 : {
  73. __sbss2_start = .;
  74. *(.sbss2)
  75. *(.sbss2.*)
  76. *(.gnu.linkonce.sb2.*)
  77. __sbss2_end = .;
  78. } > ps7_ddr_0
  79. .data : {
  80. __data_start = .;
  81. *(.data)
  82. *(.data.*)
  83. *(.gnu.linkonce.d.*)
  84. *(.jcr)
  85. *(.got)
  86. *(.got.plt)
  87. __data_end = .;
  88. } > ps7_ddr_0
  89. .data1 : {
  90. __data1_start = .;
  91. *(.data1)
  92. *(.data1.*)
  93. __data1_end = .;
  94. } > ps7_ddr_0
  95. .got : {
  96. *(.got)
  97. } > ps7_ddr_0
  98. .ctors : {
  99. __CTOR_LIST__ = .;
  100. ___CTORS_LIST___ = .;
  101. KEEP (*crtbegin.o(.ctors))
  102. KEEP (*(EXCLUDE_FILE(*crtend.o) .ctors))
  103. KEEP (*(SORT(.ctors.*)))
  104. KEEP (*(.ctors))
  105. __CTOR_END__ = .;
  106. ___CTORS_END___ = .;
  107. } > ps7_ddr_0
  108. .dtors : {
  109. __DTOR_LIST__ = .;
  110. ___DTORS_LIST___ = .;
  111. KEEP (*crtbegin.o(.dtors))
  112. KEEP (*(EXCLUDE_FILE(*crtend.o) .dtors))
  113. KEEP (*(SORT(.dtors.*)))
  114. KEEP (*(.dtors))
  115. __DTOR_END__ = .;
  116. ___DTORS_END___ = .;
  117. } > ps7_ddr_0
  118. .fixup : {
  119. __fixup_start = .;
  120. *(.fixup)
  121. __fixup_end = .;
  122. } > ps7_ddr_0
  123. .eh_frame : {
  124. *(.eh_frame)
  125. } > ps7_ddr_0
  126. .eh_framehdr : {
  127. __eh_framehdr_start = .;
  128. *(.eh_framehdr)
  129. __eh_framehdr_end = .;
  130. } > ps7_ddr_0
  131. .gcc_except_table : {
  132. *(.gcc_except_table)
  133. } > ps7_ddr_0
  134. .mmu_tbl (ALIGN(16384)) : {
  135. __mmu_tbl_start = .;
  136. *(.mmu_tbl)
  137. __mmu_tbl_end = .;
  138. } > ps7_ddr_0
  139. .ARM.exidx : {
  140. __exidx_start = .;
  141. *(.ARM.exidx*)
  142. *(.gnu.linkonce.armexidix.*.*)
  143. __exidx_end = .;
  144. } > ps7_ddr_0
  145. .preinit_array : {
  146. __preinit_array_start = .;
  147. KEEP (*(SORT(.preinit_array.*)))
  148. KEEP (*(.preinit_array))
  149. __preinit_array_end = .;
  150. } > ps7_ddr_0
  151. .init_array : {
  152. __init_array_start = .;
  153. KEEP (*(SORT(.init_array.*)))
  154. KEEP (*(.init_array))
  155. __init_array_end = .;
  156. } > ps7_ddr_0
  157. .fini_array : {
  158. __fini_array_start = .;
  159. KEEP (*(SORT(.fini_array.*)))
  160. KEEP (*(.fini_array))
  161. __fini_array_end = .;
  162. } > ps7_ddr_0
  163. .ARM.attributes : {
  164. __ARM.attributes_start = .;
  165. *(.ARM.attributes)
  166. __ARM.attributes_end = .;
  167. } > ps7_ddr_0
  168. .sdata : {
  169. __sdata_start = .;
  170. *(.sdata)
  171. *(.sdata.*)
  172. *(.gnu.linkonce.s.*)
  173. __sdata_end = .;
  174. } > ps7_ddr_0
  175. .sbss (NOLOAD) : {
  176. __sbss_start = .;
  177. *(.sbss)
  178. *(.sbss.*)
  179. *(.gnu.linkonce.sb.*)
  180. __sbss_end = .;
  181. } > ps7_ddr_0
  182. .tdata : {
  183. __tdata_start = .;
  184. *(.tdata)
  185. *(.tdata.*)
  186. *(.gnu.linkonce.td.*)
  187. __tdata_end = .;
  188. } > ps7_ddr_0
  189. .tbss : {
  190. __tbss_start = .;
  191. *(.tbss)
  192. *(.tbss.*)
  193. *(.gnu.linkonce.tb.*)
  194. __tbss_end = .;
  195. } > ps7_ddr_0
  196. .bss (NOLOAD) : {
  197. __bss_start = .;
  198. *(.bss)
  199. *(.bss.*)
  200. *(.gnu.linkonce.b.*)
  201. *(COMMON)
  202. __bss_end = .;
  203. } > ps7_ddr_0
  204. _SDA_BASE_ = __sdata_start + ((__sbss_end - __sdata_start) / 2 );
  205. _SDA2_BASE_ = __sdata2_start + ((__sbss2_end - __sdata2_start) / 2 );
  206. /* Generate Stack and Heap definitions */
  207. .heap (NOLOAD) : {
  208. . = ALIGN(16);
  209. _heap = .;
  210. HeapBase = .;
  211. _heap_start = .;
  212. . += _HEAP_SIZE;
  213. _heap_end = .;
  214. HeapLimit = .;
  215. } > ps7_ddr_0
  216. .stack (NOLOAD) : {
  217. . = ALIGN(16);
  218. _stack_end = .;
  219. . += _STACK_SIZE;
  220. . = ALIGN(16);
  221. _stack = .;
  222. __stack = _stack;
  223. . = ALIGN(16);
  224. _irq_stack_end = .;
  225. . += _IRQ_STACK_SIZE;
  226. . = ALIGN(16);
  227. __irq_stack = .;
  228. _supervisor_stack_end = .;
  229. . += _SUPERVISOR_STACK_SIZE;
  230. . = ALIGN(16);
  231. __supervisor_stack = .;
  232. _abort_stack_end = .;
  233. . += _ABORT_STACK_SIZE;
  234. . = ALIGN(16);
  235. __abort_stack = .;
  236. _fiq_stack_end = .;
  237. . += _FIQ_STACK_SIZE;
  238. . = ALIGN(16);
  239. __fiq_stack = .;
  240. _undef_stack_end = .;
  241. . += _UNDEF_STACK_SIZE;
  242. . = ALIGN(16);
  243. __undef_stack = .;
  244. } > ps7_ddr_0
  245. _end = .;
  246. }