i386pe.xr 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /* Script for -r */
  2. /* Copyright (C) 2014-2020 Free Software Foundation, Inc.
  3. Copying and distribution of this script, with or without modification,
  4. are permitted in any medium without royalty provided the copyright
  5. notice and this notice are preserved. */
  6. OUTPUT_FORMAT(pe-i386)
  7. SEARCH_DIR("=/mnt/f/gnu/x64-linux/out/x86_64-pep/lib");
  8. SECTIONS
  9. {
  10. .text :
  11. {
  12. *(.text)
  13. }
  14. /* The Cygwin32 library uses a section to avoid copying certain data
  15. on fork. This used to be named ".data". The linker used
  16. to include this between __data_start__ and __data_end__, but that
  17. breaks building the cygwin32 dll. Instead, we name the section
  18. ".data_cygwin_nocopy" and explicitly include it after __data_end__. */
  19. .data :
  20. {
  21. *(.data)
  22. KEEP(*(.jcr))
  23. }
  24. .rdata :
  25. {
  26. *(.rdata)
  27. . = ALIGN(4);
  28. }
  29. .eh_frame :
  30. {
  31. KEEP(*(.eh_frame))
  32. }
  33. .pdata :
  34. {
  35. KEEP(*(.pdata))
  36. }
  37. .bss :
  38. {
  39. *(.bss)
  40. *(COMMON)
  41. }
  42. .edata :
  43. {
  44. *(.edata)
  45. }
  46. /DISCARD/ :
  47. {
  48. *(.debug$S)
  49. *(.debug$T)
  50. *(.debug$F)
  51. *(.drectve)
  52. }
  53. .idata :
  54. {
  55. /* This cannot currently be handled with grouped sections.
  56. See pe.em:sort_sections. */
  57. }
  58. .CRT :
  59. {
  60. /* ___crt_xl_end__ is defined in the TLS Directory support code */
  61. }
  62. /* Windows TLS expects .tls$AAA to be at the start and .tls$ZZZ to be
  63. at the end of section. This is important because _tls_start MUST
  64. be at the beginning of the section to enable SECREL32 relocations with TLS
  65. data. */
  66. .tls :
  67. {
  68. *(.tls)
  69. }
  70. .endjunk :
  71. {
  72. /* end is deprecated, don't use it */
  73. }
  74. .rsrc : SUBALIGN(4)
  75. {
  76. *(.rsrc)
  77. }
  78. .reloc :
  79. {
  80. *(.reloc)
  81. }
  82. .stab :
  83. {
  84. *(.stab)
  85. }
  86. .stabstr :
  87. {
  88. *(.stabstr)
  89. }
  90. /* DWARF debug sections.
  91. Symbols in the DWARF debugging sections are relative to the beginning
  92. of the section. Unlike other targets that fake this by putting the
  93. section VMA at 0, the PE format will not allow it. */
  94. /* DWARF 1.1 and DWARF 2. */
  95. .debug_aranges :
  96. {
  97. *(.debug_aranges)
  98. }
  99. .zdebug_aranges :
  100. {
  101. *(.zdebug_aranges)
  102. }
  103. .debug_pubnames :
  104. {
  105. *(.debug_pubnames)
  106. }
  107. .zdebug_pubnames :
  108. {
  109. *(.zdebug_pubnames)
  110. }
  111. .debug_pubtypes :
  112. {
  113. *(.debug_pubtypes)
  114. }
  115. .zdebug_pubtypes :
  116. {
  117. *(.zdebug_pubtypes)
  118. }
  119. /* DWARF 2. */
  120. .debug_info :
  121. {
  122. *(.debug_info)
  123. }
  124. .zdebug_info :
  125. {
  126. *(.zdebug_info)
  127. }
  128. .debug_abbrev :
  129. {
  130. *(.debug_abbrev)
  131. }
  132. .zdebug_abbrev :
  133. {
  134. *(.zdebug_abbrev)
  135. }
  136. .debug_line :
  137. {
  138. *(.debug_line)
  139. }
  140. .zdebug_line :
  141. {
  142. *(.zdebug_line)
  143. }
  144. .debug_frame :
  145. {
  146. *(.debug_frame*)
  147. }
  148. .zdebug_frame :
  149. {
  150. *(.zdebug_frame*)
  151. }
  152. .debug_str :
  153. {
  154. *(.debug_str)
  155. }
  156. .zdebug_str :
  157. {
  158. *(.zdebug_str)
  159. }
  160. .debug_loc :
  161. {
  162. *(.debug_loc)
  163. }
  164. .zdebug_loc :
  165. {
  166. *(.zdebug_loc)
  167. }
  168. .debug_macinfo :
  169. {
  170. *(.debug_macinfo)
  171. }
  172. .zdebug_macinfo :
  173. {
  174. *(.zdebug_macinfo)
  175. }
  176. /* SGI/MIPS DWARF 2 extensions. */
  177. .debug_weaknames :
  178. {
  179. *(.debug_weaknames)
  180. }
  181. .zdebug_weaknames :
  182. {
  183. *(.zdebug_weaknames)
  184. }
  185. .debug_funcnames :
  186. {
  187. *(.debug_funcnames)
  188. }
  189. .zdebug_funcnames :
  190. {
  191. *(.zdebug_funcnames)
  192. }
  193. .debug_typenames :
  194. {
  195. *(.debug_typenames)
  196. }
  197. .zdebug_typenames :
  198. {
  199. *(.zdebug_typenames)
  200. }
  201. .debug_varnames :
  202. {
  203. *(.debug_varnames)
  204. }
  205. .zdebug_varnames :
  206. {
  207. *(.zdebug_varnames)
  208. }
  209. .debug_macro :
  210. {
  211. *(.debug_macro)
  212. }
  213. .zdebug_macro :
  214. {
  215. *(.zdebug_macro)
  216. }
  217. /* DWARF 3. */
  218. .debug_ranges :
  219. {
  220. *(.debug_ranges)
  221. }
  222. .zdebug_ranges :
  223. {
  224. *(.zdebug_ranges)
  225. }
  226. /* DWARF 4. */
  227. .debug_types :
  228. {
  229. *(.debug_types)
  230. }
  231. .zdebug_types :
  232. {
  233. *(.zdebug_types)
  234. }
  235. /* For Go and Rust. */
  236. .debug_gdb_scripts :
  237. {
  238. *(.debug_gdb_scripts)
  239. }
  240. .zdebug_gdb_scripts :
  241. {
  242. *(.zdebug_gdb_scripts)
  243. }
  244. }