ls1b_ram.lds 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2010-05-17 swkyer first version
  9. * 2010-09-04 bernard move the beginning entry to 0x80200000
  10. */
  11. OUTPUT_ARCH(mips)
  12. GROUP(-lgcc -lc)
  13. ENTRY(_start)
  14. SECTIONS
  15. {
  16. . = 0x80200000 ;
  17. .start :
  18. {
  19. *(.start);
  20. }
  21. . = ALIGN(4);
  22. .text :
  23. {
  24. *(.text)
  25. *(.text.*)
  26. *(.rodata)
  27. *(.rodata.*)
  28. *(.rodata1)
  29. *(.rodata1.*)
  30. /* section information for finsh shell */
  31. . = ALIGN(4);
  32. __fsymtab_start = .;
  33. KEEP(*(FSymTab))
  34. __fsymtab_end = .;
  35. . = ALIGN(4);
  36. __vsymtab_start = .;
  37. KEEP(*(VSymTab))
  38. __vsymtab_end = .;
  39. . = ALIGN(4);
  40. . = ALIGN(4);
  41. __rt_init_start = .;
  42. KEEP(*(SORT(.rti_fn*)))
  43. __rt_init_end = .;
  44. . = ALIGN(4);
  45. }
  46. .eh_frame_hdr :
  47. {
  48. *(.eh_frame_hdr)
  49. *(.eh_frame_entry)
  50. }
  51. .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  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. }
  64. .sbss :
  65. {
  66. __bss_start = .;
  67. *(.sbss)
  68. *(.sbss.*)
  69. *(.dynsbss)
  70. *(.scommon)
  71. }
  72. .bss :
  73. {
  74. *(.bss)
  75. *(.bss.*)
  76. *(.dynbss)
  77. *(COMMON)
  78. __bss_end = .;
  79. }
  80. _end = .;
  81. /* Stabs debugging sections. */
  82. .stab 0 : { *(.stab) }
  83. .stabstr 0 : { *(.stabstr) }
  84. .stab.excl 0 : { *(.stab.excl) }
  85. .stab.exclstr 0 : { *(.stab.exclstr) }
  86. .stab.index 0 : { *(.stab.index) }
  87. .stab.indexstr 0 : { *(.stab.indexstr) }
  88. .comment 0 : { *(.comment) }
  89. /* DWARF debug sections.
  90. * Symbols in the DWARF debugging sections are relative to the beginning
  91. * of the section so we begin them at 0. */
  92. /* DWARF 1 */
  93. .debug 0 : { *(.debug) }
  94. .line 0 : { *(.line) }
  95. /* GNU DWARF 1 extensions */
  96. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  97. .debug_sfnames 0 : { *(.debug_sfnames) }
  98. /* DWARF 1.1 and DWARF 2 */
  99. .debug_aranges 0 : { *(.debug_aranges) }
  100. .debug_pubnames 0 : { *(.debug_pubnames) }
  101. /* DWARF 2 */
  102. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  103. .debug_abbrev 0 : { *(.debug_abbrev) }
  104. .debug_line 0 : { *(.debug_line) }
  105. .debug_frame 0 : { *(.debug_frame) }
  106. .debug_str 0 : { *(.debug_str) }
  107. .debug_loc 0 : { *(.debug_loc) }
  108. .debug_macinfo 0 : { *(.debug_macinfo) }
  109. /* SGI/MIPS DWARF 2 extensions */
  110. .debug_weaknames 0 : { *(.debug_weaknames) }
  111. .debug_funcnames 0 : { *(.debug_funcnames) }
  112. .debug_typenames 0 : { *(.debug_typenames) }
  113. .debug_varnames 0 : { *(.debug_varnames) }
  114. }