dev3210_ram.lds 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. * File : jz47xx_ram.lds
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2010, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-05-17 swkyer first version
  13. * 2010-09-04 bernard move the beginning entry to 0x80200000
  14. */
  15. OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
  16. OUTPUT_ARCH(mips)
  17. MEMORY
  18. {
  19. /* 16M SDRAM */
  20. DRAM : ORIGIN = 0x80200000, LENGTH = 0x01000000
  21. /* 16K SRAM */
  22. IRAM : ORIGIN = 0x80000000, LENGTH = 0x00004000
  23. }
  24. ENTRY(_start)
  25. SECTIONS
  26. {
  27. . = 0x80200000 ;
  28. .start :
  29. {
  30. *(.start);
  31. } > DRAM
  32. . = ALIGN(4);
  33. .text :
  34. {
  35. *(.text)
  36. *(.text.*)
  37. *(.rodata)
  38. *(.rodata.*)
  39. *(.rodata1)
  40. *(.rodata1.*)
  41. /* section information for finsh shell */
  42. . = ALIGN(4);
  43. __fsymtab_start = .;
  44. KEEP(*(FSymTab))
  45. __fsymtab_end = .;
  46. . = ALIGN(4);
  47. __vsymtab_start = .;
  48. KEEP(*(VSymTab))
  49. __vsymtab_end = .;
  50. . = ALIGN(4);
  51. } > DRAM
  52. . = ALIGN(4);
  53. .data :
  54. {
  55. *(.data)
  56. *(.data.*)
  57. *(.data1)
  58. *(.data1.*)
  59. . = ALIGN(8);
  60. _gp = ABSOLUTE(.); /* Base of small data */
  61. *(.sdata)
  62. *(.sdata.*)
  63. } > DRAM
  64. . = ALIGN(4);
  65. _iramat = .;
  66. .iram : AT(_iramat)
  67. {
  68. _iramstart = .;
  69. *(.vectors.1);
  70. . = 0x100;
  71. *(.vectors.2);
  72. . = 0x180;
  73. *(.vectors.3);
  74. . = 0x200;
  75. *(.vectors.4);
  76. *(.vectors);
  77. *(.icode);
  78. *(.irodata);
  79. *(.idata);
  80. KEEP(*(.vectors*))
  81. _iramend = .;
  82. } > IRAM
  83. _iramcopy = LOADADDR(.iram);
  84. .sbss :
  85. {
  86. __bss_start = .;
  87. *(.sbss)
  88. *(.sbss.*)
  89. *(.dynsbss)
  90. *(.scommon)
  91. } > DRAM
  92. .bss :
  93. {
  94. *(.bss)
  95. *(.bss.*)
  96. *(.dynbss)
  97. *(COMMON)
  98. __bss_end = .;
  99. } > DRAM
  100. _end = .;
  101. /* Stabs debugging sections. */
  102. .stab 0 : { *(.stab) }
  103. .stabstr 0 : { *(.stabstr) }
  104. .stab.excl 0 : { *(.stab.excl) }
  105. .stab.exclstr 0 : { *(.stab.exclstr) }
  106. .stab.index 0 : { *(.stab.index) }
  107. .stab.indexstr 0 : { *(.stab.indexstr) }
  108. .comment 0 : { *(.comment) }
  109. /* DWARF debug sections.
  110. * Symbols in the DWARF debugging sections are relative to the beginning
  111. * of the section so we begin them at 0. */
  112. /* DWARF 1 */
  113. .debug 0 : { *(.debug) }
  114. .line 0 : { *(.line) }
  115. /* GNU DWARF 1 extensions */
  116. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  117. .debug_sfnames 0 : { *(.debug_sfnames) }
  118. /* DWARF 1.1 and DWARF 2 */
  119. .debug_aranges 0 : { *(.debug_aranges) }
  120. .debug_pubnames 0 : { *(.debug_pubnames) }
  121. /* DWARF 2 */
  122. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  123. .debug_abbrev 0 : { *(.debug_abbrev) }
  124. .debug_line 0 : { *(.debug_line) }
  125. .debug_frame 0 : { *(.debug_frame) }
  126. .debug_str 0 : { *(.debug_str) }
  127. .debug_loc 0 : { *(.debug_loc) }
  128. .debug_macinfo 0 : { *(.debug_macinfo) }
  129. /* SGI/MIPS DWARF 2 extensions */
  130. .debug_weaknames 0 : { *(.debug_weaknames) }
  131. .debug_funcnames 0 : { *(.debug_funcnames) }
  132. .debug_typenames 0 : { *(.debug_typenames) }
  133. .debug_varnames 0 : { *(.debug_varnames) }
  134. }