nuc980.ld 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. ENTRY(system_vectors)
  4. MEMORY
  5. {
  6. RAM (rwx) : ORIGIN = 0x000000, LENGTH = 0x04000000
  7. }
  8. SECTIONS
  9. {
  10. . = 0x0;
  11. . = ALIGN(4);
  12. .text :
  13. {
  14. *(.vectors)
  15. *(.text)
  16. *(.gnu.linkonce.t*)
  17. /* section information for finsh shell */
  18. . = ALIGN(4);
  19. __fsymtab_start = .;
  20. KEEP(*(FSymTab))
  21. __fsymtab_end = .;
  22. . = ALIGN(4);
  23. . = ALIGN(4);
  24. __vsymtab_start = .;
  25. KEEP(*(VSymTab))
  26. __vsymtab_end = .;
  27. . = ALIGN(4);
  28. /* section information for modules */
  29. . = ALIGN(4);
  30. __rtmsymtab_start = .;
  31. KEEP(*(RTMSymTab))
  32. __rtmsymtab_end = .;
  33. . = ALIGN(4);
  34. /* section information for initial. */
  35. . = ALIGN(4);
  36. __rt_init_start = .;
  37. KEEP(*(SORT(.rti_fn*)))
  38. __rt_init_end = .;
  39. . = ALIGN(4);
  40. /* section information for utest */
  41. . = ALIGN(4);
  42. __rt_utest_tc_tab_start = .;
  43. KEEP(*(UtestTcTab))
  44. __rt_utest_tc_tab_end = .;
  45. . = ALIGN(4);
  46. }
  47. . = ALIGN(4);
  48. .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
  49. . = ALIGN(4);
  50. .ctors :
  51. {
  52. PROVIDE(__ctors_start__ = .);
  53. KEEP(*(SORT(.ctors.*)))
  54. KEEP(*(.ctors))
  55. PROVIDE(__ctors_end__ = .);
  56. }
  57. .dtors :
  58. {
  59. PROVIDE(__dtors_start__ = .);
  60. KEEP(*(SORT(.dtors.*)))
  61. KEEP(*(.dtors))
  62. PROVIDE(__dtors_end__ = .);
  63. }
  64. . = ALIGN(4);
  65. .data :
  66. {
  67. *(.data)
  68. *(.data.*)
  69. *(.gnu.linkonce.d*)
  70. }
  71. . = ALIGN(4);
  72. .nobss : { *(.nobss) }
  73. . = ALIGN(4);
  74. __bss_start__ = .;
  75. __bss_start = .;
  76. .bss : { *(.bss)}
  77. . = ALIGN(4);
  78. __bss_end = .;
  79. __bss_end__ = .;
  80. . = ALIGN(4);
  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. .debug_abbrev 0 : { *(.debug_abbrev) }
  90. .debug_info 0 : { *(.debug_info) }
  91. .debug_line 0 : { *(.debug_line) }
  92. .debug_pubnames 0 : { *(.debug_pubnames) }
  93. .debug_aranges 0 : { *(.debug_aranges) }
  94. _end = .;
  95. }