ls1b_ram.lds 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. . = ALIGN(4);
  45. __rt_init_start = .;
  46. KEEP(*(SORT(.rti_fn*)))
  47. __rt_init_end = .;
  48. . = ALIGN(4);
  49. }
  50. .eh_frame_hdr :
  51. {
  52. *(.eh_frame_hdr)
  53. *(.eh_frame_entry)
  54. }
  55. .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  56. . = ALIGN(4);
  57. .data :
  58. {
  59. *(.data)
  60. *(.data.*)
  61. *(.data1)
  62. *(.data1.*)
  63. . = ALIGN(8);
  64. _gp = ABSOLUTE(.); /* Base of small data */
  65. *(.sdata)
  66. *(.sdata.*)
  67. }
  68. .sbss :
  69. {
  70. __bss_start = .;
  71. *(.sbss)
  72. *(.sbss.*)
  73. *(.dynsbss)
  74. *(.scommon)
  75. }
  76. .bss :
  77. {
  78. *(.bss)
  79. *(.bss.*)
  80. *(.dynbss)
  81. *(COMMON)
  82. __bss_end = .;
  83. }
  84. _end = .;
  85. /* Stabs debugging sections. */
  86. .stab 0 : { *(.stab) }
  87. .stabstr 0 : { *(.stabstr) }
  88. .stab.excl 0 : { *(.stab.excl) }
  89. .stab.exclstr 0 : { *(.stab.exclstr) }
  90. .stab.index 0 : { *(.stab.index) }
  91. .stab.indexstr 0 : { *(.stab.indexstr) }
  92. .comment 0 : { *(.comment) }
  93. /* DWARF debug sections.
  94. * Symbols in the DWARF debugging sections are relative to the beginning
  95. * of the section so we begin them at 0. */
  96. /* DWARF 1 */
  97. .debug 0 : { *(.debug) }
  98. .line 0 : { *(.line) }
  99. /* GNU DWARF 1 extensions */
  100. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  101. .debug_sfnames 0 : { *(.debug_sfnames) }
  102. /* DWARF 1.1 and DWARF 2 */
  103. .debug_aranges 0 : { *(.debug_aranges) }
  104. .debug_pubnames 0 : { *(.debug_pubnames) }
  105. /* DWARF 2 */
  106. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  107. .debug_abbrev 0 : { *(.debug_abbrev) }
  108. .debug_line 0 : { *(.debug_line) }
  109. .debug_frame 0 : { *(.debug_frame) }
  110. .debug_str 0 : { *(.debug_str) }
  111. .debug_loc 0 : { *(.debug_loc) }
  112. .debug_macinfo 0 : { *(.debug_macinfo) }
  113. /* SGI/MIPS DWARF 2 extensions */
  114. .debug_weaknames 0 : { *(.debug_weaknames) }
  115. .debug_funcnames 0 : { *(.debug_funcnames) }
  116. .debug_typenames 0 : { *(.debug_typenames) }
  117. .debug_varnames 0 : { *(.debug_varnames) }
  118. }