zynq7000.ld 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. * COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd
  3. *
  4. * This file is part of RT-Thread (http://www.rt-thread.org)
  5. *
  6. * All rights reserved.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. */
  22. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  23. OUTPUT_ARCH(arm)
  24. SECTIONS
  25. {
  26. . = 0x1ff00000;
  27. __text_start = .;
  28. .text :
  29. {
  30. *(.vectors)
  31. /* make the ISRs close to vectors may be more cache-friendly */
  32. *(.text.isr)
  33. *(.text)
  34. *(.text.*)
  35. /* section information for finsh shell */
  36. . = ALIGN(4);
  37. __fsymtab_start = .;
  38. KEEP(*(FSymTab))
  39. __fsymtab_end = .;
  40. . = ALIGN(4);
  41. __vsymtab_start = .;
  42. KEEP(*(VSymTab))
  43. __vsymtab_end = .;
  44. . = ALIGN(4);
  45. /* section information for modules */
  46. . = ALIGN(4);
  47. __rtmsymtab_start = .;
  48. KEEP(*(RTMSymTab))
  49. __rtmsymtab_end = .;
  50. /* section information for initialization */
  51. . = ALIGN(4);
  52. __rt_init_start = .;
  53. KEEP(*(SORT(.rti_fn*)))
  54. __rt_init_end = .;
  55. } =0
  56. __text_end = .;
  57. __rodata_start = .;
  58. .rodata : { *(.rodata) *(.rodata.*) }
  59. __rodata_end = .;
  60. . = ALIGN(4);
  61. .ctors :
  62. {
  63. PROVIDE(__ctors_start__ = .);
  64. KEEP(*(SORT(.ctors.*)))
  65. KEEP(*(.ctors))
  66. PROVIDE(__ctors_end__ = .);
  67. }
  68. .dtors :
  69. {
  70. PROVIDE(__dtors_start__ = .);
  71. KEEP(*(SORT(.dtors.*)))
  72. KEEP(*(.dtors))
  73. PROVIDE(__dtors_end__ = .);
  74. }
  75. __data_start = .;
  76. . = ALIGN(4);
  77. .data :
  78. {
  79. KEEP(*(.resource_table))
  80. *(.data)
  81. *(.data.*)
  82. }
  83. __data_end = .;
  84. . = ALIGN(4);
  85. __bss_start = __data_end;
  86. .bss :
  87. {
  88. *(.bss)
  89. *(.bss.*)
  90. *(COMMON)
  91. . = ALIGN(4);
  92. }
  93. . = ALIGN(4);
  94. __bss_end = .;
  95. /* Stabs debugging sections. */
  96. .stab 0 : { *(.stab) }
  97. .stabstr 0 : { *(.stabstr) }
  98. .stab.excl 0 : { *(.stab.excl) }
  99. .stab.exclstr 0 : { *(.stab.exclstr) }
  100. .stab.index 0 : { *(.stab.index) }
  101. .stab.indexstr 0 : { *(.stab.indexstr) }
  102. .comment 0 : { *(.comment) }
  103. _end = .;
  104. }