jz47xx_ram.lds 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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-08-23 bernard change to jz47xx
  14. */
  15. OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
  16. OUTPUT_ARCH(mips)
  17. ENTRY(_entry)
  18. SECTIONS
  19. {
  20. .start 0x80000000:
  21. {
  22. *(.start);
  23. }
  24. .text ALIGN(0x4) :
  25. {
  26. *(.text)
  27. *(.text.*)
  28. *(.rodata)
  29. *(.rodata.*)
  30. *(.rodata1)
  31. *(.rodata1.*)
  32. /* section information for finsh shell */
  33. . = ALIGN(4);
  34. __fsymtab_start = .;
  35. KEEP(*(FSymTab))
  36. __fsymtab_end = .;
  37. . = ALIGN(4);
  38. __vsymtab_start = .;
  39. KEEP(*(VSymTab))
  40. __vsymtab_end = .;
  41. . = ALIGN(4);
  42. }
  43. .data ALIGN(0x4) :
  44. {
  45. *(.data)
  46. *(.data.*)
  47. *(.data1)
  48. *(.data1.*)
  49. . = ALIGN(8);
  50. _gp = ABSOLUTE(.); /* Base of small data */
  51. *(.sdata)
  52. *(.sdata.*)
  53. }
  54. __bss_start = ABSOLUTE(.);
  55. .sbss :
  56. {
  57. *(.sbss)
  58. *(.sbss.*)
  59. *(.dynsbss)
  60. *(.scommon)
  61. }
  62. .bss :
  63. {
  64. *(.bss)
  65. *(.bss.*)
  66. *(.dynbss)
  67. *(COMMON)
  68. }
  69. __bss_end = ABSOLUTE(.);
  70. _end = .;
  71. /* Stabs debugging sections. */
  72. .stab 0 : { *(.stab) }
  73. .stabstr 0 : { *(.stabstr) }
  74. .stab.excl 0 : { *(.stab.excl) }
  75. .stab.exclstr 0 : { *(.stab.exclstr) }
  76. .stab.index 0 : { *(.stab.index) }
  77. .stab.indexstr 0 : { *(.stab.indexstr) }
  78. .comment 0 : { *(.comment) }
  79. /* DWARF debug sections.
  80. * Symbols in the DWARF debugging sections are relative to the beginning
  81. * of the section so we begin them at 0. */
  82. /* DWARF 1 */
  83. .debug 0 : { *(.debug) }
  84. .line 0 : { *(.line) }
  85. /* GNU DWARF 1 extensions */
  86. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  87. .debug_sfnames 0 : { *(.debug_sfnames) }
  88. /* DWARF 1.1 and DWARF 2 */
  89. .debug_aranges 0 : { *(.debug_aranges) }
  90. .debug_pubnames 0 : { *(.debug_pubnames) }
  91. /* DWARF 2 */
  92. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  93. .debug_abbrev 0 : { *(.debug_abbrev) }
  94. .debug_line 0 : { *(.debug_line) }
  95. .debug_frame 0 : { *(.debug_frame) }
  96. .debug_str 0 : { *(.debug_str) }
  97. .debug_loc 0 : { *(.debug_loc) }
  98. .debug_macinfo 0 : { *(.debug_macinfo) }
  99. /* SGI/MIPS DWARF 2 extensions */
  100. .debug_weaknames 0 : { *(.debug_weaknames) }
  101. .debug_funcnames 0 : { *(.debug_funcnames) }
  102. .debug_typenames 0 : { *(.debug_typenames) }
  103. .debug_varnames 0 : { *(.debug_varnames) }
  104. }