ls1b_ram.lds 2.9 KB

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