ls1c_ram.lds 3.0 KB

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