i386pep.xr 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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-x86-64)
  7. SEARCH_DIR("=/usr/local/lib/i386-linux-gnu"); SEARCH_DIR("=/lib/i386-linux-gnu"); SEARCH_DIR("=/usr/lib/i386-linux-gnu"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib"); SEARCH_DIR("=/usr/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. .xdata :
  38. {
  39. KEEP(*(.xdata))
  40. }
  41. .bss :
  42. {
  43. *(.bss)
  44. *(COMMON)
  45. }
  46. .edata :
  47. {
  48. *(.edata)
  49. }
  50. /DISCARD/ :
  51. {
  52. *(.debug$S)
  53. *(.debug$T)
  54. *(.debug$F)
  55. *(.drectve)
  56. }
  57. .idata :
  58. {
  59. /* This cannot currently be handled with grouped sections.
  60. See pep.em:sort_sections. */
  61. }
  62. .CRT :
  63. {
  64. /* ___crt_xl_end__ is defined in the TLS Directory support code */
  65. }
  66. /* Windows TLS expects .tls$AAA to be at the start and .tls$ZZZ to be
  67. at the end of the .tls section. This is important because _tls_start MUST
  68. be at the beginning of the section to enable SECREL32 relocations with TLS
  69. data. */
  70. .tls :
  71. {
  72. *(.tls)
  73. }
  74. .endjunk :
  75. {
  76. /* end is deprecated, don't use it */
  77. }
  78. .rsrc : SUBALIGN(4)
  79. {
  80. *(.rsrc)
  81. }
  82. .reloc :
  83. {
  84. *(.reloc)
  85. }
  86. .stab :
  87. {
  88. *(.stab)
  89. }
  90. .stabstr :
  91. {
  92. *(.stabstr)
  93. }
  94. /* DWARF debug sections.
  95. Symbols in the DWARF debugging sections are relative to the beginning
  96. of the section. Unlike other targets that fake this by putting the
  97. section VMA at 0, the PE format will not allow it. */
  98. /* DWARF 1.1 and DWARF 2. */
  99. .debug_aranges :
  100. {
  101. *(.debug_aranges)
  102. }
  103. .zdebug_aranges :
  104. {
  105. *(.zdebug_aranges)
  106. }
  107. .debug_pubnames :
  108. {
  109. *(.debug_pubnames)
  110. }
  111. .zdebug_pubnames :
  112. {
  113. *(.zdebug_pubnames)
  114. }
  115. .debug_pubtypes :
  116. {
  117. *(.debug_pubtypes)
  118. }
  119. .zdebug_pubtypes :
  120. {
  121. *(.zdebug_pubtypes)
  122. }
  123. /* DWARF 2. */
  124. .debug_info :
  125. {
  126. *(.debug_info)
  127. }
  128. .zdebug_info :
  129. {
  130. *(.zdebug_info)
  131. }
  132. .debug_abbrev :
  133. {
  134. *(.debug_abbrev)
  135. }
  136. .zdebug_abbrev :
  137. {
  138. *(.zdebug_abbrev)
  139. }
  140. .debug_line :
  141. {
  142. *(.debug_line)
  143. }
  144. .zdebug_line :
  145. {
  146. *(.zdebug_line)
  147. }
  148. .debug_frame :
  149. {
  150. *(.debug_frame)
  151. }
  152. .zdebug_frame :
  153. {
  154. *(.zdebug_frame)
  155. }
  156. .debug_str :
  157. {
  158. *(.debug_str)
  159. }
  160. .zdebug_str :
  161. {
  162. *(.zdebug_str)
  163. }
  164. .debug_loc :
  165. {
  166. *(.debug_loc)
  167. }
  168. .zdebug_loc :
  169. {
  170. *(.zdebug_loc)
  171. }
  172. .debug_macinfo :
  173. {
  174. *(.debug_macinfo)
  175. }
  176. .zdebug_macinfo :
  177. {
  178. *(.zdebug_macinfo)
  179. }
  180. /* SGI/MIPS DWARF 2 extensions. */
  181. .debug_weaknames :
  182. {
  183. *(.debug_weaknames)
  184. }
  185. .zdebug_weaknames :
  186. {
  187. *(.zdebug_weaknames)
  188. }
  189. .debug_funcnames :
  190. {
  191. *(.debug_funcnames)
  192. }
  193. .zdebug_funcnames :
  194. {
  195. *(.zdebug_funcnames)
  196. }
  197. .debug_typenames :
  198. {
  199. *(.debug_typenames)
  200. }
  201. .zdebug_typenames :
  202. {
  203. *(.zdebug_typenames)
  204. }
  205. .debug_varnames :
  206. {
  207. *(.debug_varnames)
  208. }
  209. .zdebug_varnames :
  210. {
  211. *(.zdebug_varnames)
  212. }
  213. .debug_macro :
  214. {
  215. *(.debug_macro)
  216. }
  217. .zdebug_macro :
  218. {
  219. *(.zdebug_macro)
  220. }
  221. /* DWARF 3. */
  222. .debug_ranges :
  223. {
  224. *(.debug_ranges)
  225. }
  226. .zdebug_ranges :
  227. {
  228. *(.zdebug_ranges)
  229. }
  230. /* DWARF 4. */
  231. .debug_types :
  232. {
  233. *(.debug_types)
  234. }
  235. .zdebug_types :
  236. {
  237. *(.zdebug_types)
  238. }
  239. /* For Go and Rust. */
  240. .debug_gdb_scripts :
  241. {
  242. *(.debug_gdb_scripts)
  243. }
  244. .zdebug_gdb_scripts :
  245. {
  246. *(.zdebug_gdb_scripts)
  247. }
  248. }