laag-nasm 2.13.03.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (455) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +57 -0
  3. data/LICENSE.txt +29 -0
  4. data/README.org +34 -0
  5. data/ext/laag/nasm/extconf.rb +16 -0
  6. data/laag-nasm.gemspec +20 -0
  7. data/lib/laag/nasm.rb +29 -0
  8. data/patches/Makefile.in.patch +13 -0
  9. data/vendor/repo.or.cz/nasm/.gitignore +102 -0
  10. data/vendor/repo.or.cz/nasm/AUTHORS +137 -0
  11. data/vendor/repo.or.cz/nasm/CHANGES +2 -0
  12. data/vendor/repo.or.cz/nasm/ChangeLog +2905 -0
  13. data/vendor/repo.or.cz/nasm/INSTALL +102 -0
  14. data/vendor/repo.or.cz/nasm/LICENSE +29 -0
  15. data/vendor/repo.or.cz/nasm/Makefile.in +855 -0
  16. data/vendor/repo.or.cz/nasm/Mkfiles/README +46 -0
  17. data/vendor/repo.or.cz/nasm/Mkfiles/msvc.mak +732 -0
  18. data/vendor/repo.or.cz/nasm/Mkfiles/openwcom.mak +706 -0
  19. data/vendor/repo.or.cz/nasm/README +23 -0
  20. data/vendor/repo.or.cz/nasm/SubmittingPatches +116 -0
  21. data/vendor/repo.or.cz/nasm/TODO +376 -0
  22. data/vendor/repo.or.cz/nasm/aclocal.m4 +139 -0
  23. data/vendor/repo.or.cz/nasm/asm/assemble.c +2957 -0
  24. data/vendor/repo.or.cz/nasm/asm/assemble.h +54 -0
  25. data/vendor/repo.or.cz/nasm/asm/directiv.c +566 -0
  26. data/vendor/repo.or.cz/nasm/asm/directiv.dat +92 -0
  27. data/vendor/repo.or.cz/nasm/asm/error.c +202 -0
  28. data/vendor/repo.or.cz/nasm/asm/eval.c +1014 -0
  29. data/vendor/repo.or.cz/nasm/asm/eval.h +49 -0
  30. data/vendor/repo.or.cz/nasm/asm/exprdump.c +79 -0
  31. data/vendor/repo.or.cz/nasm/asm/exprlib.c +200 -0
  32. data/vendor/repo.or.cz/nasm/asm/float.c +952 -0
  33. data/vendor/repo.or.cz/nasm/asm/float.h +54 -0
  34. data/vendor/repo.or.cz/nasm/asm/labels.c +540 -0
  35. data/vendor/repo.or.cz/nasm/asm/listing.c +346 -0
  36. data/vendor/repo.or.cz/nasm/asm/listing.h +113 -0
  37. data/vendor/repo.or.cz/nasm/asm/nasm.c +1855 -0
  38. data/vendor/repo.or.cz/nasm/asm/parser.c +1167 -0
  39. data/vendor/repo.or.cz/nasm/asm/parser.h +45 -0
  40. data/vendor/repo.or.cz/nasm/asm/phash.pl +109 -0
  41. data/vendor/repo.or.cz/nasm/asm/pptok.dat +96 -0
  42. data/vendor/repo.or.cz/nasm/asm/pptok.pl +271 -0
  43. data/vendor/repo.or.cz/nasm/asm/pragma.c +218 -0
  44. data/vendor/repo.or.cz/nasm/asm/preproc-nop.c +188 -0
  45. data/vendor/repo.or.cz/nasm/asm/preproc.c +5459 -0
  46. data/vendor/repo.or.cz/nasm/asm/preproc.h +55 -0
  47. data/vendor/repo.or.cz/nasm/asm/quote.c +479 -0
  48. data/vendor/repo.or.cz/nasm/asm/quote.h +44 -0
  49. data/vendor/repo.or.cz/nasm/asm/rdstrnum.c +68 -0
  50. data/vendor/repo.or.cz/nasm/asm/segalloc.c +51 -0
  51. data/vendor/repo.or.cz/nasm/asm/stdscan.c +345 -0
  52. data/vendor/repo.or.cz/nasm/asm/stdscan.h +49 -0
  53. data/vendor/repo.or.cz/nasm/asm/strfunc.c +359 -0
  54. data/vendor/repo.or.cz/nasm/asm/tokens.dat +135 -0
  55. data/vendor/repo.or.cz/nasm/asm/tokhash.pl +284 -0
  56. data/vendor/repo.or.cz/nasm/autogen.sh +9 -0
  57. data/vendor/repo.or.cz/nasm/common/common.c +122 -0
  58. data/vendor/repo.or.cz/nasm/config/msvc.h +192 -0
  59. data/vendor/repo.or.cz/nasm/config/unknown.h +51 -0
  60. data/vendor/repo.or.cz/nasm/config/watcom.h +74 -0
  61. data/vendor/repo.or.cz/nasm/configure.ac +253 -0
  62. data/vendor/repo.or.cz/nasm/contrib/MSVC6.txt +25 -0
  63. data/vendor/repo.or.cz/nasm/contrib/VSrules/nasm.README +16 -0
  64. data/vendor/repo.or.cz/nasm/contrib/VSrules/nasm.rules +79 -0
  65. data/vendor/repo.or.cz/nasm/disasm/disasm.c +1735 -0
  66. data/vendor/repo.or.cz/nasm/disasm/disasm.h +49 -0
  67. data/vendor/repo.or.cz/nasm/disasm/ndisasm.c +397 -0
  68. data/vendor/repo.or.cz/nasm/disasm/sync.c +132 -0
  69. data/vendor/repo.or.cz/nasm/disasm/sync.h +45 -0
  70. data/vendor/repo.or.cz/nasm/doc/Makefile.in +86 -0
  71. data/vendor/repo.or.cz/nasm/doc/README +20 -0
  72. data/vendor/repo.or.cz/nasm/doc/afmmetrics.ph +102 -0
  73. data/vendor/repo.or.cz/nasm/doc/changes.src +2588 -0
  74. data/vendor/repo.or.cz/nasm/doc/findfont.ph +180 -0
  75. data/vendor/repo.or.cz/nasm/doc/genps.pl +1294 -0
  76. data/vendor/repo.or.cz/nasm/doc/inslist.pl +108 -0
  77. data/vendor/repo.or.cz/nasm/doc/internal.doc +290 -0
  78. data/vendor/repo.or.cz/nasm/doc/local.css +1 -0
  79. data/vendor/repo.or.cz/nasm/doc/nasmdoc.css +150 -0
  80. data/vendor/repo.or.cz/nasm/doc/nasmdoc.src +8309 -0
  81. data/vendor/repo.or.cz/nasm/doc/nasmlogo.eps +212 -0
  82. data/vendor/repo.or.cz/nasm/doc/nasmlogw.png +0 -0
  83. data/vendor/repo.or.cz/nasm/doc/psfonts.ph +53 -0
  84. data/vendor/repo.or.cz/nasm/doc/pspdf.pl +98 -0
  85. data/vendor/repo.or.cz/nasm/doc/pswidth.ph +25 -0
  86. data/vendor/repo.or.cz/nasm/doc/rdsrc.pl +1111 -0
  87. data/vendor/repo.or.cz/nasm/doc/ttfmetrics.ph +63 -0
  88. data/vendor/repo.or.cz/nasm/headers/c +33 -0
  89. data/vendor/repo.or.cz/nasm/headers/doc +33 -0
  90. data/vendor/repo.or.cz/nasm/headers/mac +33 -0
  91. data/vendor/repo.or.cz/nasm/headers/perl +33 -0
  92. data/vendor/repo.or.cz/nasm/include/compiler.h +277 -0
  93. data/vendor/repo.or.cz/nasm/include/disp8.h +45 -0
  94. data/vendor/repo.or.cz/nasm/include/error.h +135 -0
  95. data/vendor/repo.or.cz/nasm/include/hashtbl.h +85 -0
  96. data/vendor/repo.or.cz/nasm/include/iflag.h +173 -0
  97. data/vendor/repo.or.cz/nasm/include/insns.h +76 -0
  98. data/vendor/repo.or.cz/nasm/include/labels.h +60 -0
  99. data/vendor/repo.or.cz/nasm/include/md5.h +21 -0
  100. data/vendor/repo.or.cz/nasm/include/nasm.h +1246 -0
  101. data/vendor/repo.or.cz/nasm/include/nasmint.h +219 -0
  102. data/vendor/repo.or.cz/nasm/include/nasmlib.h +524 -0
  103. data/vendor/repo.or.cz/nasm/include/opflags.h +271 -0
  104. data/vendor/repo.or.cz/nasm/include/perfhash.h +52 -0
  105. data/vendor/repo.or.cz/nasm/include/raa.h +46 -0
  106. data/vendor/repo.or.cz/nasm/include/rbtree.h +51 -0
  107. data/vendor/repo.or.cz/nasm/include/rdoff.h +169 -0
  108. data/vendor/repo.or.cz/nasm/include/saa.h +94 -0
  109. data/vendor/repo.or.cz/nasm/include/strlist.h +55 -0
  110. data/vendor/repo.or.cz/nasm/include/tables.h +70 -0
  111. data/vendor/repo.or.cz/nasm/include/ver.h +47 -0
  112. data/vendor/repo.or.cz/nasm/install-sh +250 -0
  113. data/vendor/repo.or.cz/nasm/macros/altreg.mac +107 -0
  114. data/vendor/repo.or.cz/nasm/macros/fp.mac +54 -0
  115. data/vendor/repo.or.cz/nasm/macros/ifunc.mac +48 -0
  116. data/vendor/repo.or.cz/nasm/macros/macros.pl +294 -0
  117. data/vendor/repo.or.cz/nasm/macros/smartalign.mac +189 -0
  118. data/vendor/repo.or.cz/nasm/macros/standard.mac +226 -0
  119. data/vendor/repo.or.cz/nasm/misc/Doxyfile +752 -0
  120. data/vendor/repo.or.cz/nasm/misc/Nindent +18 -0
  121. data/vendor/repo.or.cz/nasm/misc/README +2 -0
  122. data/vendor/repo.or.cz/nasm/misc/c16.mac +82 -0
  123. data/vendor/repo.or.cz/nasm/misc/c32.mac +52 -0
  124. data/vendor/repo.or.cz/nasm/misc/crcgen.c +44 -0
  125. data/vendor/repo.or.cz/nasm/misc/exebin.mac +57 -0
  126. data/vendor/repo.or.cz/nasm/misc/exebin2.mac +114 -0
  127. data/vendor/repo.or.cz/nasm/misc/fmtinsns.pl +40 -0
  128. data/vendor/repo.or.cz/nasm/misc/genfma.pl +63 -0
  129. data/vendor/repo.or.cz/nasm/misc/hints.txt +26 -0
  130. data/vendor/repo.or.cz/nasm/misc/magic +6 -0
  131. data/vendor/repo.or.cz/nasm/misc/myC32.mac +121 -0
  132. data/vendor/repo.or.cz/nasm/misc/nasm.sl +320 -0
  133. data/vendor/repo.or.cz/nasm/misc/nasmstab +296 -0
  134. data/vendor/repo.or.cz/nasm/misc/omfdump.c +517 -0
  135. data/vendor/repo.or.cz/nasm/misc/pmw.bat +9 -0
  136. data/vendor/repo.or.cz/nasm/misc/proc32.ash +441 -0
  137. data/vendor/repo.or.cz/nasm/misc/scitech.mac +1223 -0
  138. data/vendor/repo.or.cz/nasm/misc/xcrcgen.c +80 -0
  139. data/vendor/repo.or.cz/nasm/nasm.spec.in +83 -0
  140. data/vendor/repo.or.cz/nasm/nasm.spec.sed +3 -0
  141. data/vendor/repo.or.cz/nasm/nasm.txt +306 -0
  142. data/vendor/repo.or.cz/nasm/nasmlib/badenum.c +43 -0
  143. data/vendor/repo.or.cz/nasm/nasmlib/bsi.c +77 -0
  144. data/vendor/repo.or.cz/nasm/nasmlib/crc64.c +189 -0
  145. data/vendor/repo.or.cz/nasm/nasmlib/file.c +259 -0
  146. data/vendor/repo.or.cz/nasm/nasmlib/file.h +128 -0
  147. data/vendor/repo.or.cz/nasm/nasmlib/filename.c +69 -0
  148. data/vendor/repo.or.cz/nasm/nasmlib/hashtbl.c +232 -0
  149. data/vendor/repo.or.cz/nasm/nasmlib/ilog2.c +168 -0
  150. data/vendor/repo.or.cz/nasm/nasmlib/malloc.c +108 -0
  151. data/vendor/repo.or.cz/nasm/nasmlib/md5c.c +247 -0
  152. data/vendor/repo.or.cz/nasm/nasmlib/mmap.c +139 -0
  153. data/vendor/repo.or.cz/nasm/nasmlib/path.c +186 -0
  154. data/vendor/repo.or.cz/nasm/nasmlib/perfhash.c +55 -0
  155. data/vendor/repo.or.cz/nasm/nasmlib/perfhash.pl +362 -0
  156. data/vendor/repo.or.cz/nasm/nasmlib/raa.c +173 -0
  157. data/vendor/repo.or.cz/nasm/nasmlib/rbtree.c +119 -0
  158. data/vendor/repo.or.cz/nasm/nasmlib/readnum.c +172 -0
  159. data/vendor/repo.or.cz/nasm/nasmlib/realpath.c +135 -0
  160. data/vendor/repo.or.cz/nasm/nasmlib/saa.c +431 -0
  161. data/vendor/repo.or.cz/nasm/nasmlib/srcfile.c +128 -0
  162. data/vendor/repo.or.cz/nasm/nasmlib/string.c +242 -0
  163. data/vendor/repo.or.cz/nasm/nasmlib/strlist.c +100 -0
  164. data/vendor/repo.or.cz/nasm/nasmlib/ver.c +51 -0
  165. data/vendor/repo.or.cz/nasm/nasmlib/zerobuf.c +42 -0
  166. data/vendor/repo.or.cz/nasm/ndisasm.txt +94 -0
  167. data/vendor/repo.or.cz/nasm/nsis/NASMMultiUser.nsh +478 -0
  168. data/vendor/repo.or.cz/nasm/nsis/getpearch.pl +76 -0
  169. data/vendor/repo.or.cz/nasm/nsis/nasm-un.ico +0 -0
  170. data/vendor/repo.or.cz/nasm/nsis/nasm.ico +0 -0
  171. data/vendor/repo.or.cz/nasm/nsis/nasm.nsi +241 -0
  172. data/vendor/repo.or.cz/nasm/output/codeview.c +814 -0
  173. data/vendor/repo.or.cz/nasm/output/dwarf.h +566 -0
  174. data/vendor/repo.or.cz/nasm/output/elf.h +537 -0
  175. data/vendor/repo.or.cz/nasm/output/legacy.c +112 -0
  176. data/vendor/repo.or.cz/nasm/output/nulldbg.c +93 -0
  177. data/vendor/repo.or.cz/nasm/output/nullout.c +51 -0
  178. data/vendor/repo.or.cz/nasm/output/outaout.c +954 -0
  179. data/vendor/repo.or.cz/nasm/output/outaout.mac +37 -0
  180. data/vendor/repo.or.cz/nasm/output/outas86.c +650 -0
  181. data/vendor/repo.or.cz/nasm/output/outas86.mac +37 -0
  182. data/vendor/repo.or.cz/nasm/output/outbin.c +1713 -0
  183. data/vendor/repo.or.cz/nasm/output/outbin.mac +40 -0
  184. data/vendor/repo.or.cz/nasm/output/outcoff.c +1242 -0
  185. data/vendor/repo.or.cz/nasm/output/outcoff.mac +43 -0
  186. data/vendor/repo.or.cz/nasm/output/outdbg.c +425 -0
  187. data/vendor/repo.or.cz/nasm/output/outelf.c +3370 -0
  188. data/vendor/repo.or.cz/nasm/output/outelf.h +156 -0
  189. data/vendor/repo.or.cz/nasm/output/outelf.mac +41 -0
  190. data/vendor/repo.or.cz/nasm/output/outform.c +120 -0
  191. data/vendor/repo.or.cz/nasm/output/outform.h +379 -0
  192. data/vendor/repo.or.cz/nasm/output/outieee.c +1528 -0
  193. data/vendor/repo.or.cz/nasm/output/outlib.c +58 -0
  194. data/vendor/repo.or.cz/nasm/output/outlib.h +63 -0
  195. data/vendor/repo.or.cz/nasm/output/outmacho.c +2387 -0
  196. data/vendor/repo.or.cz/nasm/output/outmacho.mac +49 -0
  197. data/vendor/repo.or.cz/nasm/output/outobj.c +2725 -0
  198. data/vendor/repo.or.cz/nasm/output/outobj.mac +49 -0
  199. data/vendor/repo.or.cz/nasm/output/outrdf.mac +40 -0
  200. data/vendor/repo.or.cz/nasm/output/outrdf2.c +791 -0
  201. data/vendor/repo.or.cz/nasm/output/outrdf2.mac +43 -0
  202. data/vendor/repo.or.cz/nasm/output/pecoff.h +532 -0
  203. data/vendor/repo.or.cz/nasm/output/stabs.h +144 -0
  204. data/vendor/repo.or.cz/nasm/perllib/crc64.ph +158 -0
  205. data/vendor/repo.or.cz/nasm/perllib/gensv.pl +34 -0
  206. data/vendor/repo.or.cz/nasm/perllib/phash.ph +200 -0
  207. data/vendor/repo.or.cz/nasm/perllib/random_sv_vectors.ph +67 -0
  208. data/vendor/repo.or.cz/nasm/rdoff/README +185 -0
  209. data/vendor/repo.or.cz/nasm/rdoff/collectn.c +44 -0
  210. data/vendor/repo.or.cz/nasm/rdoff/collectn.h +22 -0
  211. data/vendor/repo.or.cz/nasm/rdoff/doc/Makefile +37 -0
  212. data/vendor/repo.or.cz/nasm/rdoff/doc/rdoff.texi +137 -0
  213. data/vendor/repo.or.cz/nasm/rdoff/doc/v1-v2.txt +62 -0
  214. data/vendor/repo.or.cz/nasm/rdoff/hash.c +122 -0
  215. data/vendor/repo.or.cz/nasm/rdoff/hash.h +17 -0
  216. data/vendor/repo.or.cz/nasm/rdoff/ldrdf.1 +41 -0
  217. data/vendor/repo.or.cz/nasm/rdoff/ldrdf.c +1395 -0
  218. data/vendor/repo.or.cz/nasm/rdoff/ldsegs.h +59 -0
  219. data/vendor/repo.or.cz/nasm/rdoff/rdf2bin.1 +65 -0
  220. data/vendor/repo.or.cz/nasm/rdoff/rdf2bin.c +431 -0
  221. data/vendor/repo.or.cz/nasm/rdoff/rdf2com.1 +1 -0
  222. data/vendor/repo.or.cz/nasm/rdoff/rdf2ihx.1 +1 -0
  223. data/vendor/repo.or.cz/nasm/rdoff/rdf2ith.1 +1 -0
  224. data/vendor/repo.or.cz/nasm/rdoff/rdf2srec.1 +1 -0
  225. data/vendor/repo.or.cz/nasm/rdoff/rdfdump.1 +24 -0
  226. data/vendor/repo.or.cz/nasm/rdoff/rdfdump.c +347 -0
  227. data/vendor/repo.or.cz/nasm/rdoff/rdflib.1 +39 -0
  228. data/vendor/repo.or.cz/nasm/rdoff/rdflib.c +434 -0
  229. data/vendor/repo.or.cz/nasm/rdoff/rdfload.c +213 -0
  230. data/vendor/repo.or.cz/nasm/rdoff/rdfload.h +29 -0
  231. data/vendor/repo.or.cz/nasm/rdoff/rdfutils.h +165 -0
  232. data/vendor/repo.or.cz/nasm/rdoff/rdlar.c +492 -0
  233. data/vendor/repo.or.cz/nasm/rdoff/rdlar.h +34 -0
  234. data/vendor/repo.or.cz/nasm/rdoff/rdlib.c +290 -0
  235. data/vendor/repo.or.cz/nasm/rdoff/rdlib.h +62 -0
  236. data/vendor/repo.or.cz/nasm/rdoff/rdoff.c +621 -0
  237. data/vendor/repo.or.cz/nasm/rdoff/rdx.1 +21 -0
  238. data/vendor/repo.or.cz/nasm/rdoff/rdx.c +90 -0
  239. data/vendor/repo.or.cz/nasm/rdoff/segtab.c +172 -0
  240. data/vendor/repo.or.cz/nasm/rdoff/segtab.h +45 -0
  241. data/vendor/repo.or.cz/nasm/rdoff/symtab.c +159 -0
  242. data/vendor/repo.or.cz/nasm/rdoff/symtab.h +55 -0
  243. data/vendor/repo.or.cz/nasm/rdoff/test/Makefile +10 -0
  244. data/vendor/repo.or.cz/nasm/rdoff/test/makelib.sh +14 -0
  245. data/vendor/repo.or.cz/nasm/rdoff/test/rdfseg.asm +20 -0
  246. data/vendor/repo.or.cz/nasm/rdoff/test/rdfseg2.asm +12 -0
  247. data/vendor/repo.or.cz/nasm/rdoff/test/rdftest1.asm +54 -0
  248. data/vendor/repo.or.cz/nasm/rdoff/test/rdftest2.asm +33 -0
  249. data/vendor/repo.or.cz/nasm/rdoff/test/rdtlib.asm +48 -0
  250. data/vendor/repo.or.cz/nasm/rdoff/test/rdtmain.asm +47 -0
  251. data/vendor/repo.or.cz/nasm/rdoff/test/testlib.asm +18 -0
  252. data/vendor/repo.or.cz/nasm/stdlib/snprintf.c +29 -0
  253. data/vendor/repo.or.cz/nasm/stdlib/strlcpy.c +51 -0
  254. data/vendor/repo.or.cz/nasm/stdlib/strnlen.c +46 -0
  255. data/vendor/repo.or.cz/nasm/stdlib/vsnprintf.c +51 -0
  256. data/vendor/repo.or.cz/nasm/test/Makefile +106 -0
  257. data/vendor/repo.or.cz/nasm/test/_file_.asm +5 -0
  258. data/vendor/repo.or.cz/nasm/test/_version.asm +2 -0
  259. data/vendor/repo.or.cz/nasm/test/a32offs.asm +9 -0
  260. data/vendor/repo.or.cz/nasm/test/absolute.asm +40 -0
  261. data/vendor/repo.or.cz/nasm/test/addr64x.asm +18 -0
  262. data/vendor/repo.or.cz/nasm/test/align13.asm +19 -0
  263. data/vendor/repo.or.cz/nasm/test/align13s.asm +20 -0
  264. data/vendor/repo.or.cz/nasm/test/alonesym-obj.asm +166 -0
  265. data/vendor/repo.or.cz/nasm/test/andbyte.asm +15 -0
  266. data/vendor/repo.or.cz/nasm/test/aoutso.asm +99 -0
  267. data/vendor/repo.or.cz/nasm/test/aouttest.asm +86 -0
  268. data/vendor/repo.or.cz/nasm/test/aouttest.c +36 -0
  269. data/vendor/repo.or.cz/nasm/test/avx.asm +46 -0
  270. data/vendor/repo.or.cz/nasm/test/avx005.asm +529 -0
  271. data/vendor/repo.or.cz/nasm/test/avx2.asm +1608 -0
  272. data/vendor/repo.or.cz/nasm/test/avx512cd.asm +106 -0
  273. data/vendor/repo.or.cz/nasm/test/avx512er.asm +144 -0
  274. data/vendor/repo.or.cz/nasm/test/avx512f.asm +7000 -0
  275. data/vendor/repo.or.cz/nasm/test/avx512pf.asm +88 -0
  276. data/vendor/repo.or.cz/nasm/test/bcd.asm +23 -0
  277. data/vendor/repo.or.cz/nasm/test/binexe.asm +35 -0
  278. data/vendor/repo.or.cz/nasm/test/bintest.asm +59 -0
  279. data/vendor/repo.or.cz/nasm/test/bisect.sh +22 -0
  280. data/vendor/repo.or.cz/nasm/test/br1879590.asm +25 -0
  281. data/vendor/repo.or.cz/nasm/test/br2003451.asm +17 -0
  282. data/vendor/repo.or.cz/nasm/test/br2030823.asm +7 -0
  283. data/vendor/repo.or.cz/nasm/test/br2148476.asm +221 -0
  284. data/vendor/repo.or.cz/nasm/test/br2222615.asm +19 -0
  285. data/vendor/repo.or.cz/nasm/test/br2496848.asm +42 -0
  286. data/vendor/repo.or.cz/nasm/test/br3005117.asm +26 -0
  287. data/vendor/repo.or.cz/nasm/test/br3026808.asm +20 -0
  288. data/vendor/repo.or.cz/nasm/test/br3028880.asm +8 -0
  289. data/vendor/repo.or.cz/nasm/test/br3041451.asm +59 -0
  290. data/vendor/repo.or.cz/nasm/test/br3058845.asm +14 -0
  291. data/vendor/repo.or.cz/nasm/test/br3066383.asm +70 -0
  292. data/vendor/repo.or.cz/nasm/test/br3074517.asm +12 -0
  293. data/vendor/repo.or.cz/nasm/test/br3092924.asm +25 -0
  294. data/vendor/repo.or.cz/nasm/test/br3104312.asm +11 -0
  295. data/vendor/repo.or.cz/nasm/test/br3109604.asm +9 -0
  296. data/vendor/repo.or.cz/nasm/test/br3174983.asm +9 -0
  297. data/vendor/repo.or.cz/nasm/test/br3187743.asm +7 -0
  298. data/vendor/repo.or.cz/nasm/test/br3189064.asm +7 -0
  299. data/vendor/repo.or.cz/nasm/test/br3200749.asm +9 -0
  300. data/vendor/repo.or.cz/nasm/test/br3385573.asm +11 -0
  301. data/vendor/repo.or.cz/nasm/test/br3392252.asm +43 -0
  302. data/vendor/repo.or.cz/nasm/test/br3392259.asm +8 -0
  303. data/vendor/repo.or.cz/nasm/test/br3392363.asm +4 -0
  304. data/vendor/repo.or.cz/nasm/test/br3392392.asm +16 -0
  305. data/vendor/repo.or.cz/nasm/test/br3392396.asm +5 -0
  306. data/vendor/repo.or.cz/nasm/test/br3392411.asm +22 -0
  307. data/vendor/repo.or.cz/nasm/test/br3392418.asm +3 -0
  308. data/vendor/repo.or.cz/nasm/test/br3392439.asm +25 -0
  309. data/vendor/repo.or.cz/nasm/test/br3392442.asm +6 -0
  310. data/vendor/repo.or.cz/nasm/test/br560575.asm +17 -0
  311. data/vendor/repo.or.cz/nasm/test/br560873.asm +27 -0
  312. data/vendor/repo.or.cz/nasm/test/br890790.asm +7 -0
  313. data/vendor/repo.or.cz/nasm/test/br890790_i.asm +1 -0
  314. data/vendor/repo.or.cz/nasm/test/br978756.asm +7 -0
  315. data/vendor/repo.or.cz/nasm/test/changed.asm +383 -0
  316. data/vendor/repo.or.cz/nasm/test/cofftest.asm +85 -0
  317. data/vendor/repo.or.cz/nasm/test/cofftest.c +35 -0
  318. data/vendor/repo.or.cz/nasm/test/crc32.asm +37 -0
  319. data/vendor/repo.or.cz/nasm/test/cv8struc.asm +14 -0
  320. data/vendor/repo.or.cz/nasm/test/dtbcd.asm +72 -0
  321. data/vendor/repo.or.cz/nasm/test/elf64so.asm +118 -0
  322. data/vendor/repo.or.cz/nasm/test/elfso.asm +100 -0
  323. data/vendor/repo.or.cz/nasm/test/elftest.asm +87 -0
  324. data/vendor/repo.or.cz/nasm/test/elftest.c +38 -0
  325. data/vendor/repo.or.cz/nasm/test/elftest64.c +43 -0
  326. data/vendor/repo.or.cz/nasm/test/elif.asm +39 -0
  327. data/vendor/repo.or.cz/nasm/test/expimp.asm +90 -0
  328. data/vendor/repo.or.cz/nasm/test/far64.asm +10 -0
  329. data/vendor/repo.or.cz/nasm/test/float.asm +186 -0
  330. data/vendor/repo.or.cz/nasm/test/float8.asm +135 -0
  331. data/vendor/repo.or.cz/nasm/test/floatb.asm +35 -0
  332. data/vendor/repo.or.cz/nasm/test/floatexp.asm +382 -0
  333. data/vendor/repo.or.cz/nasm/test/floatize.asm +19 -0
  334. data/vendor/repo.or.cz/nasm/test/floattest.asm +28 -0
  335. data/vendor/repo.or.cz/nasm/test/floatx.asm +525 -0
  336. data/vendor/repo.or.cz/nasm/test/fpu.asm +127 -0
  337. data/vendor/repo.or.cz/nasm/test/fwdopt.asm +133 -0
  338. data/vendor/repo.or.cz/nasm/test/fwdoptpp.asm +150 -0
  339. data/vendor/repo.or.cz/nasm/test/gas2nasm.py +104 -0
  340. data/vendor/repo.or.cz/nasm/test/gather.asm +11 -0
  341. data/vendor/repo.or.cz/nasm/test/gotoff64.asm +25 -0
  342. data/vendor/repo.or.cz/nasm/test/hexfp.asm +25 -0
  343. data/vendor/repo.or.cz/nasm/test/hle.asm +19 -0
  344. data/vendor/repo.or.cz/nasm/test/ifelse.asm +46 -0
  345. data/vendor/repo.or.cz/nasm/test/ifenv.asm +31 -0
  346. data/vendor/repo.or.cz/nasm/test/ifmacro.asm +413 -0
  347. data/vendor/repo.or.cz/nasm/test/iftoken.asm +317 -0
  348. data/vendor/repo.or.cz/nasm/test/iftoken.pl +32 -0
  349. data/vendor/repo.or.cz/nasm/test/ilog2.asm +271 -0
  350. data/vendor/repo.or.cz/nasm/test/imacro.asm +8 -0
  351. data/vendor/repo.or.cz/nasm/test/imm.asm +23 -0
  352. data/vendor/repo.or.cz/nasm/test/imm64.asm +61 -0
  353. data/vendor/repo.or.cz/nasm/test/immwarn.asm +91 -0
  354. data/vendor/repo.or.cz/nasm/test/imul.asm +117 -0
  355. data/vendor/repo.or.cz/nasm/test/inc1.asm +6 -0
  356. data/vendor/repo.or.cz/nasm/test/inc2.asm +8 -0
  357. data/vendor/repo.or.cz/nasm/test/incbin.asm +7 -0
  358. data/vendor/repo.or.cz/nasm/test/incbin.data +2 -0
  359. data/vendor/repo.or.cz/nasm/test/inctest.asm +15 -0
  360. data/vendor/repo.or.cz/nasm/test/insnlbl.asm +12 -0
  361. data/vendor/repo.or.cz/nasm/test/invlpga.asm +11 -0
  362. data/vendor/repo.or.cz/nasm/test/jmp64.asm +19 -0
  363. data/vendor/repo.or.cz/nasm/test/lar_lsl.asm +124 -0
  364. data/vendor/repo.or.cz/nasm/test/larlsl.asm +23 -0
  365. data/vendor/repo.or.cz/nasm/test/lnxhello.asm +54 -0
  366. data/vendor/repo.or.cz/nasm/test/local.asm +19 -0
  367. data/vendor/repo.or.cz/nasm/test/loopoffs.asm +12 -0
  368. data/vendor/repo.or.cz/nasm/test/lwp.asm +213 -0
  369. data/vendor/repo.or.cz/nasm/test/macro-defaults.asm +64 -0
  370. data/vendor/repo.or.cz/nasm/test/macroerr.asm +12 -0
  371. data/vendor/repo.or.cz/nasm/test/macroerr.inc +3 -0
  372. data/vendor/repo.or.cz/nasm/test/mmxsize.asm +38 -0
  373. data/vendor/repo.or.cz/nasm/test/movd.asm +12 -0
  374. data/vendor/repo.or.cz/nasm/test/movd64.asm +15 -0
  375. data/vendor/repo.or.cz/nasm/test/movimm.asm +28 -0
  376. data/vendor/repo.or.cz/nasm/test/movnti.asm +10 -0
  377. data/vendor/repo.or.cz/nasm/test/mpx-64.asm +120 -0
  378. data/vendor/repo.or.cz/nasm/test/mpx.asm +89 -0
  379. data/vendor/repo.or.cz/nasm/test/multisection.asm +96 -0
  380. data/vendor/repo.or.cz/nasm/test/nasmformat.asm +17 -0
  381. data/vendor/repo.or.cz/nasm/test/new +9 -0
  382. data/vendor/repo.or.cz/nasm/test/newrdwr.asm +24 -0
  383. data/vendor/repo.or.cz/nasm/test/nop.asm +17 -0
  384. data/vendor/repo.or.cz/nasm/test/nullfile.asm +4 -0
  385. data/vendor/repo.or.cz/nasm/test/objexe.asm +30 -0
  386. data/vendor/repo.or.cz/nasm/test/objlink.c +33 -0
  387. data/vendor/repo.or.cz/nasm/test/objtest.asm +85 -0
  388. data/vendor/repo.or.cz/nasm/test/optimization.asm +104 -0
  389. data/vendor/repo.or.cz/nasm/test/org.asm +18 -0
  390. data/vendor/repo.or.cz/nasm/test/paste.asm +12 -0
  391. data/vendor/repo.or.cz/nasm/test/pcrel.asm +52 -0
  392. data/vendor/repo.or.cz/nasm/test/perf/label.pl +18 -0
  393. data/vendor/repo.or.cz/nasm/test/perf/macro.pl +18 -0
  394. data/vendor/repo.or.cz/nasm/test/perf/token.pl +23 -0
  395. data/vendor/repo.or.cz/nasm/test/performtest.pl +192 -0
  396. data/vendor/repo.or.cz/nasm/test/pextrw.asm +3 -0
  397. data/vendor/repo.or.cz/nasm/test/pinsr16.asm +53 -0
  398. data/vendor/repo.or.cz/nasm/test/pinsr32.asm +53 -0
  399. data/vendor/repo.or.cz/nasm/test/pinsr64.asm +68 -0
  400. data/vendor/repo.or.cz/nasm/test/popcnt.asm +32 -0
  401. data/vendor/repo.or.cz/nasm/test/ppindirect.asm +42 -0
  402. data/vendor/repo.or.cz/nasm/test/pragma.asm +12 -0
  403. data/vendor/repo.or.cz/nasm/test/prefix66.asm +28 -0
  404. data/vendor/repo.or.cz/nasm/test/ptr.asm +4 -0
  405. data/vendor/repo.or.cz/nasm/test/pushseg.asm +17 -0
  406. data/vendor/repo.or.cz/nasm/test/r13.asm +15 -0
  407. data/vendor/repo.or.cz/nasm/test/radix.asm +54 -0
  408. data/vendor/repo.or.cz/nasm/test/rdpid.asm +21 -0
  409. data/vendor/repo.or.cz/nasm/test/reldef.asm +57 -0
  410. data/vendor/repo.or.cz/nasm/test/relocs.asm +20 -0
  411. data/vendor/repo.or.cz/nasm/test/riprel.asm +5357 -0
  412. data/vendor/repo.or.cz/nasm/test/riprel.pl +29 -0
  413. data/vendor/repo.or.cz/nasm/test/riprel2.asm +11 -0
  414. data/vendor/repo.or.cz/nasm/test/sha-64.asm +30 -0
  415. data/vendor/repo.or.cz/nasm/test/sha.asm +31 -0
  416. data/vendor/repo.or.cz/nasm/test/smartalign16.asm +36 -0
  417. data/vendor/repo.or.cz/nasm/test/smartalign32.asm +36 -0
  418. data/vendor/repo.or.cz/nasm/test/smartalign64.asm +36 -0
  419. data/vendor/repo.or.cz/nasm/test/splitea.asm +11 -0
  420. data/vendor/repo.or.cz/nasm/test/sreg.asm +65 -0
  421. data/vendor/repo.or.cz/nasm/test/strlen.asm +5 -0
  422. data/vendor/repo.or.cz/nasm/test/struc.asm +33 -0
  423. data/vendor/repo.or.cz/nasm/test/test67.asm +38 -0
  424. data/vendor/repo.or.cz/nasm/test/testdos.asm +13 -0
  425. data/vendor/repo.or.cz/nasm/test/testnos3.asm +973 -0
  426. data/vendor/repo.or.cz/nasm/test/time.asm +11 -0
  427. data/vendor/repo.or.cz/nasm/test/times.asm +21 -0
  428. data/vendor/repo.or.cz/nasm/test/timesneg.asm +3 -0
  429. data/vendor/repo.or.cz/nasm/test/tmap.nas +1447 -0
  430. data/vendor/repo.or.cz/nasm/test/uscore.asm +15 -0
  431. data/vendor/repo.or.cz/nasm/test/utf.asm +82 -0
  432. data/vendor/repo.or.cz/nasm/test/vaesenc.asm +22 -0
  433. data/vendor/repo.or.cz/nasm/test/vex.asm +9 -0
  434. data/vendor/repo.or.cz/nasm/test/vgather.asm +76 -0
  435. data/vendor/repo.or.cz/nasm/test/vmread.asm +26 -0
  436. data/vendor/repo.or.cz/nasm/test/weirdpaste.asm +29 -0
  437. data/vendor/repo.or.cz/nasm/test/xchg.asm +96 -0
  438. data/vendor/repo.or.cz/nasm/test/xcrypt.asm +24 -0
  439. data/vendor/repo.or.cz/nasm/test/xmm0.asm +12 -0
  440. data/vendor/repo.or.cz/nasm/test/zerobyte.asm +22 -0
  441. data/vendor/repo.or.cz/nasm/tools/cleanfile +176 -0
  442. data/vendor/repo.or.cz/nasm/tools/cleanpatch +258 -0
  443. data/vendor/repo.or.cz/nasm/tools/mkdep.pl +261 -0
  444. data/vendor/repo.or.cz/nasm/tools/release +105 -0
  445. data/vendor/repo.or.cz/nasm/tools/syncfiles.pl +137 -0
  446. data/vendor/repo.or.cz/nasm/tools/tag-release +58 -0
  447. data/vendor/repo.or.cz/nasm/version +1 -0
  448. data/vendor/repo.or.cz/nasm/version.pl +189 -0
  449. data/vendor/repo.or.cz/nasm/x86/disp8.c +131 -0
  450. data/vendor/repo.or.cz/nasm/x86/insns-iflags.ph +280 -0
  451. data/vendor/repo.or.cz/nasm/x86/insns.dat +5371 -0
  452. data/vendor/repo.or.cz/nasm/x86/insns.pl +1043 -0
  453. data/vendor/repo.or.cz/nasm/x86/regs.dat +138 -0
  454. data/vendor/repo.or.cz/nasm/x86/regs.pl +204 -0
  455. metadata +520 -0
@@ -0,0 +1,49 @@
1
+ ;; --------------------------------------------------------------------------
2
+ ;;
3
+ ;; Copyright 1996-2009 The NASM Authors - All Rights Reserved
4
+ ;; See the file AUTHORS included with the NASM distribution for
5
+ ;; the specific copyright holders.
6
+ ;;
7
+ ;; Redistribution and use in source and binary forms, with or without
8
+ ;; modification, are permitted provided that the following
9
+ ;; conditions are met:
10
+ ;;
11
+ ;; * Redistributions of source code must retain the above copyright
12
+ ;; notice, this list of conditions and the following disclaimer.
13
+ ;; * Redistributions in binary form must reproduce the above
14
+ ;; copyright notice, this list of conditions and the following
15
+ ;; disclaimer in the documentation and/or other materials provided
16
+ ;; with the distribution.
17
+ ;;
18
+ ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19
+ ;; CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20
+ ;; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21
+ ;; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ ;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23
+ ;; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ ;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25
+ ;; NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ ;; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27
+ ;; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+ ;; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
+ ;; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
+ ;; EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ ;;
32
+ ;; --------------------------------------------------------------------------
33
+
34
+ OUT: obj
35
+ %define __SECT__ [section .text]
36
+ %imacro group 1+.nolist
37
+ [group %1]
38
+ %endmacro
39
+ %imacro uppercase 0+.nolist
40
+ [uppercase %1]
41
+ %endmacro
42
+ %imacro export 1+.nolist
43
+ [export %1]
44
+ %endmacro
45
+ %imacro import 1+.nolist
46
+ [import %1]
47
+ %endmacro
48
+ %macro __NASM_CDecl__ 1
49
+ %endmacro
@@ -0,0 +1,40 @@
1
+ ;; --------------------------------------------------------------------------
2
+ ;;
3
+ ;; Copyright 1996-2009 The NASM Authors - All Rights Reserved
4
+ ;; See the file AUTHORS included with the NASM distribution for
5
+ ;; the specific copyright holders.
6
+ ;;
7
+ ;; Redistribution and use in source and binary forms, with or without
8
+ ;; modification, are permitted provided that the following
9
+ ;; conditions are met:
10
+ ;;
11
+ ;; * Redistributions of source code must retain the above copyright
12
+ ;; notice, this list of conditions and the following disclaimer.
13
+ ;; * Redistributions in binary form must reproduce the above
14
+ ;; copyright notice, this list of conditions and the following
15
+ ;; disclaimer in the documentation and/or other materials provided
16
+ ;; with the distribution.
17
+ ;;
18
+ ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19
+ ;; CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20
+ ;; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21
+ ;; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ ;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23
+ ;; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ ;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25
+ ;; NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ ;; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27
+ ;; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+ ;; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
+ ;; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
+ ;; EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ ;;
32
+ ;; --------------------------------------------------------------------------
33
+
34
+ OUT: rdf
35
+ %define __SECT__ [section .text]
36
+ %imacro library 1+.nolist
37
+ [library %1]
38
+ %endmacro
39
+ %macro __NASM_CDecl__ 1
40
+ %endmacro
@@ -0,0 +1,791 @@
1
+ /* ----------------------------------------------------------------------- *
2
+ *
3
+ * Copyright 1996-2016 The NASM Authors - All Rights Reserved
4
+ * See the file AUTHORS included with the NASM distribution for
5
+ * the specific copyright holders.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following
9
+ * conditions are met:
10
+ *
11
+ * * Redistributions of source code must retain the above copyright
12
+ * notice, this list of conditions and the following disclaimer.
13
+ * * Redistributions in binary form must reproduce the above
14
+ * copyright notice, this list of conditions and the following
15
+ * disclaimer in the documentation and/or other materials provided
16
+ * with the distribution.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19
+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ *
32
+ * ----------------------------------------------------------------------- */
33
+
34
+ /*
35
+ * outrdf2.c output routines for the Netwide Assembler to produce
36
+ * RDOFF version 2 format object files, which Julian originally
37
+ * planned to use it in his MOSCOW operating system.
38
+ */
39
+
40
+ #include "compiler.h"
41
+
42
+ #include <stdio.h>
43
+ #include <stdlib.h>
44
+ #include <string.h>
45
+ #include <ctype.h>
46
+ #include <assert.h>
47
+
48
+ #include "nasm.h"
49
+ #include "nasmlib.h"
50
+ #include "error.h"
51
+ #include "saa.h"
52
+ #include "outform.h"
53
+ #include "outlib.h"
54
+
55
+ /* VERBOSE_WARNINGS: define this to add some extra warnings... */
56
+ #define VERBOSE_WARNINGS
57
+
58
+ #ifdef OF_RDF2
59
+
60
+ #include "rdoff.h"
61
+
62
+ /* This signature is written to start of RDOFF files */
63
+ static const char *RDOFF2Id = RDOFF2_SIGNATURE;
64
+
65
+ /* Note that whenever a segment is referred to in the RDOFF file, its number
66
+ * is always half of the segment number that NASM uses to refer to it; this
67
+ * is because NASM only allocates even numbered segments, so as to not
68
+ * waste any of the 16 bits of segment number written to the file - this
69
+ * allows up to 65533 external labels to be defined; otherwise it would be
70
+ * 32764. */
71
+
72
+ #define COUNT_SEGTYPES 9
73
+
74
+ static char *segmenttypes[COUNT_SEGTYPES] = {
75
+ "null", "text", "code", "data",
76
+ "comment", "lcomment", "pcomment",
77
+ "symdebug", "linedebug"
78
+ };
79
+
80
+ static int segmenttypenumbers[COUNT_SEGTYPES] = {
81
+ 0, 1, 1, 2, 3, 4, 5, 6, 7
82
+ };
83
+
84
+ /* code for managing buffers needed to separate code and data into individual
85
+ * sections until they are ready to be written to the file.
86
+ * We'd better hope that it all fits in memory else we're buggered... */
87
+
88
+ #define BUF_BLOCK_LEN 4088 /* selected to match page size (4096)
89
+ * on 80x86 machines for efficiency */
90
+
91
+ /***********************************************************************
92
+ * Actual code to deal with RDOFF2 ouput format begins here...
93
+ */
94
+
95
+ /* global variables set during the initialisation phase */
96
+
97
+ static struct SAA *seg[RDF_MAXSEGS]; /* seg 0 = code, seg 1 = data */
98
+ static struct SAA *header; /* relocation/import/export records */
99
+
100
+ static struct seginfo {
101
+ char *segname;
102
+ int segnumber;
103
+ uint16_t segtype;
104
+ uint16_t segreserved;
105
+ int32_t seglength;
106
+ } segments[RDF_MAXSEGS];
107
+
108
+ static int nsegments;
109
+
110
+ static int32_t bsslength;
111
+ static int32_t headerlength;
112
+
113
+ static void rdf2_init(void)
114
+ {
115
+ int segtext, segdata, segbss;
116
+
117
+ /* set up the initial segments */
118
+ segments[0].segname = ".text";
119
+ segments[0].segnumber = 0;
120
+ segments[0].segtype = 1;
121
+ segments[0].segreserved = 0;
122
+ segments[0].seglength = 0;
123
+
124
+ segments[1].segname = ".data";
125
+ segments[1].segnumber = 1;
126
+ segments[1].segtype = 2;
127
+ segments[1].segreserved = 0;
128
+ segments[1].seglength = 0;
129
+
130
+ segments[2].segname = ".bss";
131
+ segments[2].segnumber = 2;
132
+ segments[2].segtype = 0xFFFF; /* reserved - should never be produced */
133
+ segments[2].segreserved = 0;
134
+ segments[2].seglength = 0;
135
+
136
+ nsegments = 3;
137
+
138
+ seg[0] = saa_init(1L);
139
+ seg[1] = saa_init(1L);
140
+ seg[2] = NULL; /* special case! */
141
+
142
+ header = saa_init(1L);
143
+
144
+ segtext = seg_alloc();
145
+ segdata = seg_alloc();
146
+ segbss = seg_alloc();
147
+ if (segtext != 0 || segdata != 2 || segbss != 4)
148
+ nasm_panic(0,
149
+ "rdf segment numbers not allocated as expected (%d,%d,%d)",
150
+ segtext, segdata, segbss);
151
+ bsslength = 0;
152
+ headerlength = 0;
153
+ }
154
+
155
+ static int32_t rdf2_section_names(char *name, int pass, int *bits)
156
+ {
157
+ int i;
158
+ bool err;
159
+ char *p, *q;
160
+ int code = -1;
161
+ int reserved = 0;
162
+
163
+ (void)pass;
164
+
165
+ /*
166
+ * Default is 32 bits, in the text segment.
167
+ */
168
+ if (!name) {
169
+ *bits = 32;
170
+ return 0;
171
+ }
172
+
173
+ /* look for segment type code following segment name */
174
+ p = name;
175
+ while (*p && !nasm_isspace(*p))
176
+ p++;
177
+ if (*p) { /* we're now in whitespace */
178
+ *p++ = '\0';
179
+ while (*p && nasm_isspace(80))
180
+ *p++ = '\0';
181
+ }
182
+ if (*p) { /* we're now in an attribute value */
183
+ /*
184
+ * see if we have an optional ',number' following the type code
185
+ */
186
+ if ((q = strchr(p, ','))) {
187
+ *q++ = '\0';
188
+
189
+ reserved = readnum(q, &err);
190
+ if (err) {
191
+ nasm_error(ERR_NONFATAL,
192
+ "value following comma must be numeric");
193
+ reserved = 0;
194
+ }
195
+ }
196
+ /*
197
+ * check it against the text strings in segmenttypes
198
+ */
199
+
200
+ for (i = 0; i < COUNT_SEGTYPES; i++)
201
+ if (!nasm_stricmp(p, segmenttypes[i])) {
202
+ code = segmenttypenumbers[i];
203
+ break;
204
+ }
205
+ if (code == -1) { /* didn't find anything */
206
+ code = readnum(p, &err);
207
+ if (err) {
208
+ nasm_error(ERR_NONFATAL, "unrecognised RDF segment type (%s)",
209
+ p);
210
+ code = 3;
211
+ }
212
+ }
213
+ }
214
+ for (i = 0; i < nsegments; i++) {
215
+ if (!strcmp(name, segments[i].segname)) {
216
+ if (code != -1 || reserved != 0)
217
+ nasm_error(ERR_NONFATAL, "segment attributes specified on"
218
+ " redeclaration of segment");
219
+ return segments[i].segnumber * 2;
220
+ }
221
+ }
222
+
223
+ /* declaring a new segment! */
224
+
225
+ if (code == -1) {
226
+ nasm_error(ERR_NONFATAL, "new segment declared without type code");
227
+ code = 3;
228
+ }
229
+ if (nsegments == RDF_MAXSEGS) {
230
+ nasm_fatal(0, "reached compiled-in maximum segment limit (%d)",
231
+ RDF_MAXSEGS);
232
+ return NO_SEG;
233
+ }
234
+
235
+ segments[nsegments].segname = nasm_strdup(name);
236
+ i = seg_alloc();
237
+ if (i % 2 != 0)
238
+ nasm_panic(0, "seg_alloc() returned odd number");
239
+ segments[nsegments].segnumber = i >> 1;
240
+ segments[nsegments].segtype = code;
241
+ segments[nsegments].segreserved = reserved;
242
+ segments[nsegments].seglength = 0;
243
+
244
+ seg[nsegments] = saa_init(1L);
245
+
246
+ return i;
247
+ }
248
+
249
+ /*
250
+ * Write relocation record
251
+ */
252
+ static void write_reloc_rec(struct RelocRec *r)
253
+ {
254
+ char buf[4], *b;
255
+
256
+ if (r->refseg != (uint16_t) NO_SEG && (r->refseg & 1)) /* segment base ref */
257
+ r->type = RDFREC_SEGRELOC;
258
+
259
+ r->refseg >>= 1; /* adjust segment nos to RDF rather than NASM */
260
+
261
+ saa_wbytes(header, &r->type, 1);
262
+ saa_wbytes(header, &r->reclen, 1);
263
+ saa_wbytes(header, &r->segment, 1);
264
+ b = buf;
265
+ WRITELONG(b, r->offset);
266
+ saa_wbytes(header, buf, 4);
267
+ saa_wbytes(header, &r->length, 1);
268
+ b = buf;
269
+ WRITESHORT(b, r->refseg);
270
+ saa_wbytes(header, buf, 2);
271
+ headerlength += r->reclen + 2;
272
+ }
273
+
274
+ /*
275
+ * Write export record
276
+ */
277
+ static void write_export_rec(struct ExportRec *r)
278
+ {
279
+ char buf[4], *b;
280
+
281
+ r->segment >>= 1;
282
+
283
+ saa_wbytes(header, &r->type, 1);
284
+ saa_wbytes(header, &r->reclen, 1);
285
+ saa_wbytes(header, &r->flags, 1);
286
+ saa_wbytes(header, &r->segment, 1);
287
+ b = buf;
288
+ WRITELONG(b, r->offset);
289
+ saa_wbytes(header, buf, 4);
290
+ saa_wbytes(header, r->label, strlen(r->label) + 1);
291
+ headerlength += r->reclen + 2;
292
+ }
293
+
294
+ static void write_import_rec(struct ImportRec *r)
295
+ {
296
+ char buf[4], *b;
297
+
298
+ r->segment >>= 1;
299
+
300
+ saa_wbytes(header, &r->type, 1);
301
+ saa_wbytes(header, &r->reclen, 1);
302
+ saa_wbytes(header, &r->flags, 1);
303
+ b = buf;
304
+ WRITESHORT(b, r->segment);
305
+ saa_wbytes(header, buf, 2);
306
+ saa_wbytes(header, r->label, strlen(r->label) + 1);
307
+ headerlength += r->reclen + 2;
308
+ }
309
+
310
+ /*
311
+ * Write BSS record
312
+ */
313
+ static void write_bss_rec(struct BSSRec *r)
314
+ {
315
+ char buf[4], *b;
316
+
317
+ saa_wbytes(header, &r->type, 1);
318
+ saa_wbytes(header, &r->reclen, 1);
319
+ b = buf;
320
+ WRITELONG(b, r->amount);
321
+ saa_wbytes(header, buf, 4);
322
+ headerlength += r->reclen + 2;
323
+ }
324
+
325
+ /*
326
+ * Write common variable record
327
+ */
328
+ static void write_common_rec(struct CommonRec *r)
329
+ {
330
+ char buf[4], *b;
331
+
332
+ r->segment >>= 1;
333
+
334
+ saa_wbytes(header, &r->type, 1);
335
+ saa_wbytes(header, &r->reclen, 1);
336
+ b = buf;
337
+ WRITESHORT(b, r->segment);
338
+ saa_wbytes(header, buf, 2);
339
+ b = buf;
340
+ WRITELONG(b, r->size);
341
+ saa_wbytes(header, buf, 4);
342
+ b = buf;
343
+ WRITESHORT(b, r->align);
344
+ saa_wbytes(header, buf, 2);
345
+ saa_wbytes(header, r->label, strlen(r->label) + 1);
346
+ headerlength += r->reclen + 2;
347
+ }
348
+
349
+ /*
350
+ * Write library record
351
+ */
352
+ static void write_dll_rec(struct DLLRec *r)
353
+ {
354
+ saa_wbytes(header, &r->type, 1);
355
+ saa_wbytes(header, &r->reclen, 1);
356
+ saa_wbytes(header, r->libname, strlen(r->libname) + 1);
357
+ headerlength += r->reclen + 2;
358
+ }
359
+
360
+ /*
361
+ * Write module name record
362
+ */
363
+ static void write_modname_rec(struct ModRec *r)
364
+ {
365
+ saa_wbytes(header, &r->type, 1);
366
+ saa_wbytes(header, &r->reclen, 1);
367
+ saa_wbytes(header, r->modname, strlen(r->modname) + 1);
368
+ headerlength += r->reclen + 2;
369
+ }
370
+
371
+ /*
372
+ * Handle export, import and common records.
373
+ */
374
+ static void rdf2_deflabel(char *name, int32_t segment, int64_t offset,
375
+ int is_global, char *special)
376
+ {
377
+ struct ExportRec r;
378
+ struct ImportRec ri;
379
+ struct CommonRec ci;
380
+ static int farsym = 0;
381
+ static int i;
382
+ char symflags = 0;
383
+ int len;
384
+
385
+ /* Check if the label length is OK */
386
+ if ((len = strlen(name)) >= EXIM_LABEL_MAX) {
387
+ nasm_error(ERR_NONFATAL, "label size exceeds %d bytes", EXIM_LABEL_MAX);
388
+ return;
389
+ }
390
+ if (!len) {
391
+ nasm_error(ERR_NONFATAL, "zero-length label");
392
+ return;
393
+ }
394
+
395
+ if (is_global == 2) {
396
+ /* Common variable */
397
+ ci.type = RDFREC_COMMON;
398
+ ci.size = offset;
399
+ ci.segment = segment;
400
+ strcpy(ci.label, name);
401
+ ci.reclen = 9 + len;
402
+ ci.align = 0;
403
+
404
+ /*
405
+ * Check the special text to see if it's a valid number and power
406
+ * of two; if so, store it as the alignment for the common variable.
407
+ */
408
+ if (special) {
409
+ bool err;
410
+ ci.align = readnum(special, &err);
411
+ if (err)
412
+ nasm_error(ERR_NONFATAL, "alignment constraint `%s' is not a"
413
+ " valid number", special);
414
+ else if ((ci.align | (ci.align - 1)) != 2 * ci.align - 1)
415
+ nasm_error(ERR_NONFATAL, "alignment constraint `%s' is not a"
416
+ " power of two", special);
417
+ }
418
+ write_common_rec(&ci);
419
+ }
420
+
421
+ /* We don't care about local labels or fix-up hints */
422
+ if (is_global != 1)
423
+ return;
424
+
425
+ if (special) {
426
+ while (*special == ' ' || *special == '\t')
427
+ special++;
428
+
429
+ if (!nasm_strnicmp(special, "export", 6)) {
430
+ special += 6;
431
+ symflags |= SYM_GLOBAL;
432
+ } else if (!nasm_strnicmp(special, "import", 6)) {
433
+ special += 6;
434
+ symflags |= SYM_IMPORT;
435
+ }
436
+
437
+ if (*special) {
438
+ while (nasm_isspace(*special))
439
+ special++;
440
+ if (!nasm_stricmp(special, "far")) {
441
+ farsym = 1;
442
+ } else if (!nasm_stricmp(special, "near")) {
443
+ farsym = 0;
444
+ } else if (!nasm_stricmp(special, "proc") ||
445
+ !nasm_stricmp(special, "function")) {
446
+ symflags |= SYM_FUNCTION;
447
+ } else if (!nasm_stricmp(special, "data") ||
448
+ !nasm_stricmp(special, "object")) {
449
+ symflags |= SYM_DATA;
450
+ } else
451
+ nasm_error(ERR_NONFATAL, "unrecognised symbol type `%s'",
452
+ special);
453
+ }
454
+ }
455
+
456
+ if (name[0] == '.' && name[1] == '.' && name[2] != '@') {
457
+ nasm_error(ERR_NONFATAL, "unrecognised special symbol `%s'", name);
458
+ return;
459
+ }
460
+
461
+ for (i = 0; i < nsegments; i++) {
462
+ if (segments[i].segnumber == segment >> 1)
463
+ break;
464
+ }
465
+
466
+ if (i >= nsegments) { /* EXTERN declaration */
467
+ ri.type = farsym ? RDFREC_FARIMPORT : RDFREC_IMPORT;
468
+ if (symflags & SYM_GLOBAL)
469
+ nasm_error(ERR_NONFATAL,
470
+ "symbol type conflict - EXTERN cannot be EXPORT");
471
+ ri.flags = symflags;
472
+ ri.segment = segment;
473
+ strcpy(ri.label, name);
474
+ ri.reclen = 4 + len;
475
+ write_import_rec(&ri);
476
+ } else if (is_global) {
477
+ r.type = RDFREC_GLOBAL; /* GLOBAL declaration */
478
+ if (symflags & SYM_IMPORT)
479
+ nasm_error(ERR_NONFATAL,
480
+ "symbol type conflict - GLOBAL cannot be IMPORT");
481
+ r.flags = symflags;
482
+ r.segment = segment;
483
+ r.offset = offset;
484
+ strcpy(r.label, name);
485
+ r.reclen = 7 + len;
486
+ write_export_rec(&r);
487
+ }
488
+ }
489
+
490
+ static void membufwrite(int segment, const void *data, int bytes)
491
+ {
492
+ int i;
493
+ char buf[4], *b;
494
+
495
+ for (i = 0; i < nsegments; i++) {
496
+ if (segments[i].segnumber == segment)
497
+ break;
498
+ }
499
+ if (i == nsegments)
500
+ nasm_panic(0, "can't find segment %d", segment);
501
+
502
+ if (bytes < 0) {
503
+ b = buf;
504
+ if (bytes == -2)
505
+ WRITESHORT(b, *(int16_t *)data);
506
+ else
507
+ WRITELONG(b, *(int32_t *)data);
508
+ data = buf;
509
+ bytes = -bytes;
510
+ }
511
+ segments[i].seglength += bytes;
512
+ saa_wbytes(seg[i], data, bytes);
513
+ }
514
+
515
+ static int getsegmentlength(int segment)
516
+ {
517
+ int i;
518
+ for (i = 0; i < nsegments; i++) {
519
+ if (segments[i].segnumber == segment)
520
+ break;
521
+ }
522
+ if (i == nsegments)
523
+ nasm_panic(0, "can't find segment %d", segment);
524
+
525
+ return segments[i].seglength;
526
+ }
527
+
528
+ static void rdf2_out(int32_t segto, const void *data,
529
+ enum out_type type, uint64_t size,
530
+ int32_t segment, int32_t wrt)
531
+ {
532
+ struct RelocRec rr;
533
+ uint8_t databuf[8], *pd;
534
+ int seg;
535
+
536
+ if (segto == NO_SEG) {
537
+ if (type != OUT_RESERVE)
538
+ nasm_error(ERR_NONFATAL,
539
+ "attempt to assemble code in ABSOLUTE space");
540
+ return;
541
+ }
542
+
543
+ segto >>= 1; /* convert NASM segment no to RDF number */
544
+
545
+ for (seg = 0; seg < nsegments; seg++) {
546
+ if (segments[seg].segnumber == segto)
547
+ break;
548
+ }
549
+ if (seg >= nsegments) {
550
+ nasm_error(ERR_NONFATAL,
551
+ "specified segment not supported by rdf output format");
552
+ return;
553
+ }
554
+
555
+ if (wrt != NO_SEG) {
556
+ wrt = NO_SEG; /* continue to do _something_ */
557
+ nasm_error(ERR_NONFATAL, "WRT not supported by rdf output format");
558
+ }
559
+
560
+ if (segto == 2 && type != OUT_RESERVE) {
561
+ nasm_error(ERR_NONFATAL, "BSS segments may not be initialized");
562
+
563
+ /* just reserve the space for now... */
564
+
565
+ if (type == OUT_REL2ADR)
566
+ size = 2;
567
+ else
568
+ size = 4;
569
+ type = OUT_RESERVE;
570
+ }
571
+
572
+ if (type == OUT_RESERVE) {
573
+ if (segto == 2) /* BSS segment space reserverd */
574
+ bsslength += size;
575
+ else
576
+ while (size--)
577
+ membufwrite(segto, databuf, 1);
578
+ } else if (type == OUT_RAWDATA) {
579
+ if (segment != NO_SEG)
580
+ nasm_panic(0, "OUT_RAWDATA with other than NO_SEG");
581
+
582
+ membufwrite(segto, data, size);
583
+ } else if (type == OUT_ADDRESS) {
584
+ int asize = abs((int)size);
585
+
586
+ /* if segment == NO_SEG then we are writing an address of an
587
+ object within the same segment - do not produce reloc rec. */
588
+
589
+ /* FIXME - is this behaviour sane? at first glance it doesn't
590
+ appear to be. Must test this thoroughly...! */
591
+
592
+ if (segment != NO_SEG) {
593
+ /* it's an address, so we must write a relocation record */
594
+
595
+ rr.type = RDFREC_RELOC; /* type signature */
596
+ rr.reclen = 8;
597
+ rr.segment = segto; /* segment we're currently in */
598
+ rr.offset = getsegmentlength(segto); /* current offset */
599
+ rr.length = asize; /* length of reference */
600
+ rr.refseg = segment; /* segment referred to */
601
+ write_reloc_rec(&rr);
602
+ }
603
+
604
+ pd = databuf; /* convert address to little-endian */
605
+ WRITEADDR(pd, *(int64_t *)data, asize);
606
+ membufwrite(segto, databuf, asize);
607
+ } else if (type == OUT_REL2ADR) {
608
+ if (segment == segto)
609
+ nasm_panic(0, "intra-segment OUT_REL2ADR");
610
+
611
+ rr.reclen = 8;
612
+ rr.offset = getsegmentlength(segto); /* current offset */
613
+ rr.length = 2; /* length of reference */
614
+ rr.refseg = segment; /* segment referred to (will be >>1'd) */
615
+
616
+ if (segment != NO_SEG && segment % 2) {
617
+ rr.type = RDFREC_SEGRELOC;
618
+ rr.segment = segto; /* memory base refs *aren't ever* relative! */
619
+ write_reloc_rec(&rr);
620
+
621
+ /* what do we put in the code? Simply the data. This should almost
622
+ * always be zero, unless someone's doing segment arithmetic...
623
+ */
624
+ rr.offset = *(int64_t *)data;
625
+ } else {
626
+ rr.type = RDFREC_RELOC; /* type signature */
627
+ rr.segment = segto + 64; /* segment we're currently in + rel flag */
628
+ write_reloc_rec(&rr);
629
+
630
+ /* work out what to put in the code: offset of the end of this operand,
631
+ * subtracted from any data specified, so that loader can just add
632
+ * address of imported symbol onto it to get address relative to end of
633
+ * instruction: import_address + data(offset) - end_of_instrn */
634
+
635
+ rr.offset = *(int32_t *)data - (rr.offset + size);
636
+ }
637
+
638
+ membufwrite(segto, &rr.offset, -2);
639
+ } else if (type == OUT_REL4ADR) {
640
+ if ((segment == segto) && (globalbits != 64))
641
+ nasm_panic(0, "intra-segment OUT_REL4ADR");
642
+ if (segment != NO_SEG && segment % 2) {
643
+ nasm_panic(0, "erm... 4 byte segment base ref?");
644
+ }
645
+
646
+ rr.type = RDFREC_RELOC; /* type signature */
647
+ rr.segment = segto + 64; /* segment we're currently in + rel tag */
648
+ rr.offset = getsegmentlength(segto); /* current offset */
649
+ rr.length = 4; /* length of reference */
650
+ rr.refseg = segment; /* segment referred to */
651
+ rr.reclen = 8;
652
+ write_reloc_rec(&rr);
653
+
654
+ rr.offset = *(int64_t *)data - (rr.offset + size);
655
+
656
+ membufwrite(segto, &rr.offset, -4);
657
+ }
658
+ }
659
+
660
+ static void rdf2_cleanup(void)
661
+ {
662
+ int32_t l;
663
+ struct BSSRec bs;
664
+ int i;
665
+
666
+ /* should write imported & exported symbol declarations to header here */
667
+
668
+ /* generate the output file... */
669
+ nasm_write(RDOFF2Id, 6, ofile); /* file type magic number */
670
+
671
+ if (bsslength != 0) { /* reserve BSS */
672
+ bs.type = RDFREC_BSS;
673
+ bs.amount = bsslength;
674
+ bs.reclen = 4;
675
+ write_bss_rec(&bs);
676
+ }
677
+
678
+ /*
679
+ * calculate overall length of the output object
680
+ */
681
+ l = headerlength + 4;
682
+
683
+ for (i = 0; i < nsegments; i++) {
684
+ if (i == 2)
685
+ continue; /* skip BSS segment */
686
+ l += 10 + segments[i].seglength;
687
+ }
688
+ l += 10; /* null segment */
689
+
690
+ fwriteint32_t(l, ofile);
691
+
692
+ fwriteint32_t(headerlength, ofile);
693
+ saa_fpwrite(header, ofile); /* dump header */
694
+ saa_free(header);
695
+
696
+ for (i = 0; i < nsegments; i++) {
697
+ if (i == 2)
698
+ continue;
699
+
700
+ fwriteint16_t(segments[i].segtype, ofile);
701
+ fwriteint16_t(segments[i].segnumber, ofile);
702
+ fwriteint16_t(segments[i].segreserved, ofile);
703
+ fwriteint32_t(segments[i].seglength, ofile);
704
+
705
+ saa_fpwrite(seg[i], ofile);
706
+ saa_free(seg[i]);
707
+ }
708
+
709
+ /* null segment - write 10 bytes of zero */
710
+ fwriteint32_t(0, ofile);
711
+ fwriteint32_t(0, ofile);
712
+ fwriteint16_t(0, ofile);
713
+ }
714
+
715
+ static int32_t rdf2_segbase(int32_t segment)
716
+ {
717
+ return segment;
718
+ }
719
+
720
+ /*
721
+ * Handle RDOFF2 specific directives
722
+ */
723
+ static enum directive_result
724
+ rdf2_directive(enum directive directive, char *value, int pass)
725
+ {
726
+ size_t n;
727
+
728
+ switch (directive) {
729
+ case D_LIBRARY:
730
+ n = strlen(value);
731
+ if (n >= MODLIB_NAME_MAX) {
732
+ nasm_error(ERR_NONFATAL, "name size exceeds %d bytes", MODLIB_NAME_MAX);
733
+ return DIRR_ERROR;
734
+ }
735
+ if (pass == 1) {
736
+ struct DLLRec r;
737
+ r.type = RDFREC_DLL;
738
+ r.reclen = n + 1;
739
+ strcpy(r.libname, value);
740
+ write_dll_rec(&r);
741
+ }
742
+ return DIRR_OK;
743
+
744
+ case D_MODULE:
745
+ if ((n = strlen(value)) >= MODLIB_NAME_MAX) {
746
+ nasm_error(ERR_NONFATAL, "name size exceeds %d bytes", MODLIB_NAME_MAX);
747
+ return DIRR_ERROR;
748
+ }
749
+ if (pass == 1) {
750
+ struct ModRec r;
751
+ r.type = RDFREC_MODNAME;
752
+ r.reclen = n + 1;
753
+ strcpy(r.modname, value);
754
+ write_modname_rec(&r);
755
+ }
756
+ return DIRR_OK;
757
+
758
+ default:
759
+ return DIRR_UNKNOWN;
760
+ }
761
+ }
762
+
763
+ static void rdf2_filename(char *inname, char *outname)
764
+ {
765
+ standard_extension(inname, outname, ".rdf");
766
+ }
767
+
768
+ extern macros_t rdf2_stdmac[];
769
+
770
+ const struct ofmt of_rdf2 = {
771
+ "Relocatable Dynamic Object File Format v2.0",
772
+ "rdf",
773
+ 0,
774
+ 64,
775
+ null_debug_arr,
776
+ &null_debug_form,
777
+ rdf2_stdmac,
778
+ rdf2_init,
779
+ nasm_do_legacy_output,
780
+ rdf2_out,
781
+ rdf2_deflabel,
782
+ rdf2_section_names,
783
+ null_sectalign,
784
+ rdf2_segbase,
785
+ rdf2_directive,
786
+ rdf2_filename,
787
+ rdf2_cleanup,
788
+ NULL /* pragma list */
789
+ };
790
+
791
+ #endif /* OF_RDF2 */