ls1c_ram.lds 3.2 KB

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