Additional CHANGES
[platform/upstream/nasm.git] / CHANGES
1 2.00
2 ----
3 * Added c99 data-type compliance.
4 * Added general x86-64 support.
5 * Added win64 (x86-64 COFF) output format.
6 * Added __BITS__ standard macro.
7 * Added elf32 and elf64 output formats.
8 * Added Numeric constants in DQ directive.
9 * Added oword, do and reso pseudo operands.
10 * Added 8-bit floating-point format.
11 * Correct the generation of floating-point constants.
12 * Added Floating-point option control.
13 * Added Infinity and NaN floating point support.
14 * Added ELF Symbol Visibility support.
15 * Added Setting OSABI value in ELF header directive.
16 * Added Generate Makefile Dependencies option.
17 * Added Unlimited Optimization Passes option.
18 * Added %IFN and %ELIFN support.
19 * Added Logical Negation Operator.
20 * Enhanced Stack Relative Preprocessor Directives.
21 * Enhanced ELF Debug Formats.
22 * Enhanced Send Errors to a File option.
23 * Added SSSE3, SSE4.1, SSE4.2, SSE5 support.
24 * Added a large number of additional instructions.
25 * Significant performance improvements.
26
27 0.98.39
28 -------
29 * fix buffer overflow
30 * fix outas86's .bss handling
31 * "make spotless" no longer deletes config.h.in.
32 * %(el)if(n)idn insensitivity to string quotes difference (#809300).
33 * (nasm.c) __OUTPUT_FORMAT__ changed to string value instead of symbol.
34
35 0.98.38
36 -------
37 * Add Makefile for 16-bit DOS binaries under OpenWatcom, and modify
38   mkdep.pl to be able to generate completely pathless dependencies, as
39   required by OpenWatcom wmake (it supports path searches, but not
40   explicit paths.)
41 * Fix the STR instruction.
42 * Fix the ELF output format, which was broken under certain
43   circumstances due to the addition of stabs support.
44 * Quick-fix Borland format debug-info for -f obj  
45 * Fix for %rep with no arguments (#560568)
46 * Fix concatenation of preprocessor function call (#794686)
47 * Fix long label causes coredump (#677841)
48 * Use autoheader as well as autoconf to keep configure from generating
49   ridiculously long command lines.
50 * Make sure that all of the formats which support debugging output
51   actually will suppress debugging output when -g not specified.
52
53 0.98.37
54 -------
55 * Paths given in "-I" switch searched for "incbin"ed as
56   well as "%include"ed files.
57 * Added stabs debugging for the ELF output format, patch from
58   Martin Wawro.
59 * Fix output/outbin.c to allow origin > 80000000h.
60 * Make -U switch work.
61 * Fix the use of relative offsets with explicit prefixes, e.g. "a32 loop foo".
62 * Remove "backslash()".
63 * Fix the SMSW and SLDT instructions.
64 * -O2 and -O3 are no longer aliases for -O10 and -O15.  If you mean the
65   latter, please say so! :)
66
67 0.98.36
68 -------
69 * Update rdoff - librarian/archiver - common rec - docs!
70 * Fix signed/unsigned problems.
71 * Fix JMP FAR label and CALL FAR label.
72 * Add new multisection support - map files - fix align bug
73 * Fix sysexit, movhps/movlps reg,reg bugs in insns.dat
74 * "Q" or "O" suffixes indicate octal
75 * Support Prescott new instructions (PNI).
76 * Cyrix XSTORE instruction.
77
78 0.98.35
79 -------
80 * Fix build failure on 16-bit DOS (Makefile.bc3 workaround for compiler bug.)
81 * Fix dependencies and compiler warnings.
82 * Add "const" in a number of places.
83 * Add -X option to specify error reporting format (use -Xvc to
84   integrate with Microsoft Visual Studio.)
85 * Minor changes for code legibility.
86 * Drop use of tmpnam() in rdoff (security fix.)
87
88 0.98.34
89 -------
90 * Correct additional address-size vs. operand-size confusions.
91 * Generate dependencies for all Makefiles automatically.
92 * Add support for unimplemented (but theoretically available)
93   registers such as tr0 and cr5.  Segment registers 6 and 7 are called
94   segr6 and segr7 for the operations which they can be represented.
95 * Correct some disassembler bugs related to redundant address-size prefixes.
96   Some work still remains in this area.
97 * Correctly generate an error for things like "SEG eax".
98 * Add the JMPE instruction, enabled by "CPU IA64".
99 * Correct compilation on newer gcc/glibc platforms.
100 * Issue an error on things like "jmp far eax".
101
102
103 0.98.33
104 -------
105
106 * New __NASM_PATCHLEVEL__ and __NASM_VERSION_ID__ standard macros to
107   round out the version-query macros.  version.pl now understands
108   X.YYplWW or X.YY.ZZplWW as a version number, equivalent to
109   X.YY.ZZ.WW (or X.YY.0.WW, as appropriate).
110 * New keyword "strict" to disable the optimization of specific
111   operands.
112 * Fix the handing of size overrides with JMP instructions
113   (instructions such as "jmp dword foo".)
114 * Fix the handling of "ABSOLUTE label", where "label" points into a
115   relocatable segment.
116 * Fix OBJ output format with lots of externs.
117 * More documentation updates.
118 * Add -Ov option to get verbose information about optimizations.
119 * Undo a braindead change which broke %elif directives.
120 * Makefile updates.
121
122
123 0.98.32
124 -------
125
126 * Fix NASM crashing when %macro directives were left unterminated.
127 * Lots of documentation updates.
128 * Complete rewrite of the PostScript/PDF documentation generator.
129 * The MS Visual C++ Makefile was updated and corrected.
130 * Recognize .rodata as a standard section name in ELF.
131 * Fix some obsolete Perl4-isms in Perl scripts.
132 * Fix configure.in to work with autoconf 2.5x.
133 * Fix a couple of "make cleaner" misses.
134 * Make the normal "./configure && make" work with Cygwin.
135
136
137 0.98.31
138 -------
139
140 * Correctly build in a separate object directory again.
141 * Derive all references to the version number from the version file.
142 * New standard macros __NASM_SUBMINOR__ and __NASM_VER__ macros.
143 * Lots of Makefile updates and bug fixes.
144 * New %ifmacro directive to test for multiline macros.
145 * Documentation updates.
146 * Fixes for 16-bit OBJ format output.
147 * Changed the NASM environment variable to NASMENV.
148
149
150 0.98.30
151 -------
152
153 * Changed doc files a lot: completely removed old READMExx and
154   Wishlist files, incorporating all information in CHANGES and TODO.
155 * I waited a long time to rename zoutieee.c to (original) outieee.c
156 * moved all output modules to output/ subdirectory.
157 * Added 'make strip' target to strip debug info from nasm & ndisasm.
158 * Added INSTALL file with installation instructions.
159 * Added -v option description to nasm man.
160 * Added dist makefile target to produce source distributions.
161 * 16-bit support for ELF output format (GNU extension, but useful.)
162
163
164 0.98.28
165 -------
166
167 * Fastcooked this for Debian's Woody release:
168 Frank applied the INCBIN bug patch to 0.98.25alt and called
169 it 0.98.28 to not confuse poor little apt-get.
170
171
172 0.98.26
173 -------
174
175 * Reorganised files even better from 0.98.25alt
176
177
178 0.98.25alt
179 ----------
180
181 * Prettified the source tree. Moved files to more reasonable places.
182 * Added findleak.pl script to misc/ directory.
183 * Attempted to fix doc.
184
185 0.98.25
186 -------
187
188 * Line continuation character '\'
189 * Docs inadvertantly reverted - "dos packaging".
190
191
192 0.98.24p1
193 ---------
194
195 * FIXME: Someone, document this please.
196
197
198 0.98.24
199 -------
200
201 * Documentation - Ndisasm doc added to Nasm.doc.
202
203
204 0.98.23
205 -------
206
207 * Attempted to remove rdoff version1
208 * Lino Mastrodomenico's patches to preproc.c (%$$ bug?).
209
210
211 0.98.22
212 -------
213
214 * Update rdoff2 - attempt to remove v1.
215
216
217 0.98.21
218 -------
219
220 * Optimization fixes.
221
222
223 0.98.20
224 -------
225
226 * Optimization fixes.
227
228
229 0.98.19
230 -------
231
232 * H. J. Lu's patch back out.
233
234
235 0.98.18
236 -------
237
238 * Added ".rdata" to "-f win32".
239
240
241 0.98.17
242 -------
243
244 * H. J. Lu's "bogus elf" patch. (Red Hat problem?)
245
246
247 0.98.16
248 -------
249
250 * Fix whitespace before "[section ..." bug.
251
252 0.98.15
253 -------
254
255 * Rdoff changes (?).
256 * Fix fixes to memory leaks.
257
258 0.98.14
259 -------
260
261 * Fix memory leaks.
262 * (there was no '.13)
263
264 0.98.12
265 -------
266
267 * Update optimization (new function of "-O1")
268 * Changes to test/bintest.asm (?).
269
270 0.98.11
271 -------
272
273 * Optimization changes.
274 * Ndisasm fixed.
275 * (there was no '.10)
276
277 0.98.09
278 -------
279
280 * Add multiple sections support to "-f bin".
281 * Changed GLOBAL_TEMP_BASE in outelf.c from 6 to 15.
282 * Add "-v" as an alias to the "-r" switch.
283 * Remove "#ifdef" from Tasm compatibility options.
284 * Remove redundant size-overrides on "mov ds, ex", etc.
285 * Fixes to SSE2, other insns.dat (?).
286 * Enable uppercase "I" and "P" switches.
287 * Case insinsitive "seg" and "wrt".
288 * Update install.sh (?).
289 * Allocate tokens in blocks.
290 * Improve "invalid effective address" messages.
291
292 0.98.08
293 -------
294
295 * Add "%strlen" and "%substr" macro operators
296 * Fixed broken c16.mac.
297 * Unterminated string error reported.
298 * Fixed bugs as per 0.98bf
299
300
301 0.98.09b with John Coffman patches released 28-Oct-2001
302 -------------------------------------------------------
303
304 Changes from 0.98.07 release to 98.09b as of 28-Oct-2001
305
306 * More closely compatible with 0.98 when -O0 is implied
307 or specified.  Not strictly identical, since backward 
308 branches in range of short offsets are recognized, and signed
309 byte values with no explicit size specification will be
310 assembled as a single byte.
311
312 * More forgiving with the PUSH instruction.  0.98 requires
313 a size to be specified always.  0.98.09b will imply the size
314 from the current BITS setting (16 or 32).
315
316 * Changed definition of the optimization flag:
317
318         -O0     strict two-pass assembly, JMP and Jcc are
319                 handled more like 0.98, except that back-
320                 ward JMPs are short, if possible.
321
322         -O1     strict two-pass assembly, but forward
323                 branches are assembled with code guaranteed
324                 to reach; may produce larger code than
325                 -O0, but will produce successful assembly
326                 more often if branch offset sizes are not
327                 specified.
328
329         -O2     multi-pass optimization, minimize branch
330                 offsets; also will minimize signed immed-
331                 iate bytes, overriding size specification.
332
333         -O3     like -O2, but more passes taken, if needed
334
335
336 0.98.07 released 01/28/01
337 -------------------------
338
339 *       Added Stepane Denis' SSE2 instructions to a *working*
340         version of the code - some earlier versions were based on
341         broken code - sorry 'bout that. version "0.98.07"
342
343
344 01/28/01
345 --------
346
347 *       Cosmetic modifications to nasm.c, nasm.h,
348         AUTHORS, MODIFIED
349
350
351 0.98.06f released 01/18/01
352 --------------------------
353
354 *       - Add "metalbrain"s jecxz bug fix in insns.dat
355         - alter nasmdoc.src to match - version "0.98.06f"
356
357
358 0.98.06e released 01/09/01
359 --------------------------
360
361 *       Removed the "outforms.h" file - it appears to be
362         someone's old backup of "outform.h". version "0.98.06e" 
363
364
365 01/09/01
366 --------
367
368 * fbk - finally added the fix for the "multiple %includes bug",
369         known since 7/27/99 - reported originally (?) and sent to
370         us by Austin Lunnen - he reports that John Fine had a fix
371         within the day. Here it is...
372
373 * Nelson Rush resigns from the group. Big thanks to Nelson for
374   his leadership and enthusiasm in getting these changes
375   incorporated into Nasm!
376
377 * fbk - [list +], [list -] directives - ineptly implemented, should
378         be re-written or removed, perhaps.
379
380 * Brian Raiter / fbk - "elfso bug" fix - applied to aoutb format
381                        as well - testing might be desirable...
382
383
384 08/07/00
385 --------
386
387 * James Seter - -postfix, -prefix command line switches.
388 * Yuri Zaporogets - rdoff utility changes.
389
390
391 0.98p1
392 ------
393
394 * GAS-like palign (Panos Minos)
395 * FIXME: Someone, fill this in with details
396
397
398 0.98bf (bug-fixed)
399 ----------------------------------
400
401 * Fixed - elf and aoutb bug - shared libraries
402         - multiple "%include" bug in "-f obj"   
403         - jcxz, jecxz bug
404         - unrecognized option bug in ndisasm 
405
406 0.98.03 with John Coffman's changes released 27-Jul-2000
407 --------------------------------------------------------
408
409 * Added signed byte optimizations for the 0x81/0x83 class
410 of instructions: ADC, ADD, AND, CMP, OR, SBB, SUB, XOR:
411 when used as 'ADD reg16,imm' or 'ADD reg32,imm.'  Also
412 optimization of signed byte form of 'PUSH imm' and 'IMUL
413 reg,imm'/'IMUL reg,reg,imm.'  No size specification is needed.
414
415 * Added multi-pass JMP and Jcc offset optimization.  Offsets
416 on forward references will preferentially use the short form,
417 without the need to code a specific size (short or near) for
418 the branch.  Added instructions for 'Jcc label' to use the
419 form 'Jnotcc $+3/JMP label', in cases where a short offset
420 is out of bounds.  If compiling for a 386 or higher CPU, then
421 the 386 form of Jcc will be used instead.
422
423 This feature is controlled by a new command-line switch: "O",
424 (upper case letter O).  "-O0" reverts the assembler to no
425 extra optimization passes, "-O1" allows up to 5 extra passes,
426 and "-O2"(default), allows up to 10 extra optimization passes.
427
428 * Added a new directive:  'cpu XXX', where XXX is any of: 
429 8086, 186, 286, 386, 486, 586, pentium, 686, PPro, P2, P3 or
430 Katmai.  All are case insensitive.  All instructions will
431 be selected only if they apply to the selected cpu or lower.
432 Corrected a couple of bugs in cpu-dependence in 'insns.dat'.
433
434 * Added to 'standard.mac', the "use16" and "use32" forms of
435 the "bits 16/32" directive. This is nothing new, just conforms
436 to a lot of other assemblers. (minor)
437
438 * Changed label allocation from 320/32 (10000 labels @ 200K+) 
439 to 32/37 (1000 labels); makes running under DOS much easier.
440 Since additional label space is allocated dynamically, this
441 should have no effect on large programs with lots of labels.
442 The 37 is a prime, believed to be better for hashing. (minor)
443
444 * Integrated patchfile 0.98-0.98.01.  I call this version
445 0.98.03, for historical reasons:  0.98.02 was trashed.
446
447 --John Coffman <johninsd@san.rr.com>               27-Jul-2000
448
449
450 Kendall Bennett's SciTech MGL changes
451 -------------------------------------
452 Note that you must define "TASM_COMPAT" at compile-time
453 to get the Tasm Ideal Mode compatibility.
454
455 All changes can be compiled in and out using the TASM_COMPAT macros,
456 and when compiled without TASM_COMPAT defined we get the exact same
457 binary as the unmodified 0.98 sources.
458
459 standard.mac, macros.c:
460  . Added macros to ignore TASM directives before first include
461
462 nasm.h:
463  . Added extern declaration for tasm_compatible_mode
464
465 nasm.c:
466  . Added global variable tasm_compatible_mode
467  . Added command line switch for TASM compatible mode (-t)
468  . Changed version command line to reflect when compiled with TASM additions
469  . Added response file processing to allow all arguments on a single
470    line (response file is @resp rather than -@resp for NASM format).
471
472 labels.c:
473  . Changes islocal() macro to support TASM style @@local labels.
474  . Added islocalchar() macro to support TASM style @@local labels.
475
476 parser.c:
477  . Added support for TASM style memory references (ie: mov [DWORD eax],10
478    rather than the NASM style mov DWORD [eax],10).
479
480 preproc.c:
481  . Added new directives, %arg, %local, %stacksize to directives table
482  . Added support for TASM style directives without a leading % symbol.
483
484 Integrated a block of changes from Andrew Zabolotny <bit@eltech.ru>:
485
486 * A new keyword %xdefine and its case-insensitive counterpart %ixdefine.
487     They work almost the same way as %define and %idefine but expand
488     the definition immediately, not on the invocation. Something like a cross
489     between %define and %assign. The "x" suffix stands for "eXpand", so
490     "xdefine" can be deciphered as "expand-and-define". Thus you can do
491     things like this:
492
493         %assign ofs     0
494         
495         %macro  arg     1
496                 %xdefine %1 dword [esp+ofs]
497                 %assign ofs ofs+4
498         %endmacro
499
500 * Changed the place where the expansion of %$name macros are expanded.
501     Now they are converted into ..@ctxnum.name form when detokenizing, so
502     there are no quirks as before when using %$name arguments to macros,
503     in macros etc. For example:
504
505         %macro  abc     1
506                 %define %1 hello
507         %endm
508
509         abc     %$here
510         %$here
511
512     Now last line will be expanded into "hello" as expected. This also allows
513     for lots of goodies, a good example are extended "proc" macros included
514     in this archive.
515
516 * Added a check for "cstk" in smacro_defined() before calling get_ctx() -
517     this allows for things like:
518
519         %ifdef %$abc
520         %endif
521
522     to work without warnings even in no context.
523
524 * Added a check for "cstk" in %if*ctx and %elif*ctx directives -
525     this allows to use %ifctx without excessive warnings. If there is
526     no active context, %ifctx goes through "false" branch.
527
528 * Removed "user error: " prefix with %error directive: it just clobbers the
529     output and has absolutely no functionality. Besides, this allows to write
530     macros that does not differ from built-in functions in any way.
531
532 * Added expansion of string that is output by %error directive. Now you
533     can do things like:
534
535         %define hello(x) Hello, x!
536
537         %define %$name andy
538         %error "hello(%$name)"
539
540     Same happened with %include directive.
541
542 * Now all directives that expect an identifier will try to expand and
543     concatenate everything without whitespaces in between before usage.
544     For example, with "unfixed" nasm the commands
545
546         %define %$abc hello
547         %define __%$abc goodbye
548         __%$abc
549
550     would produce "incorrect" output: last line will expand to
551
552         hello goodbyehello
553
554     Not quite what you expected, eh? :-) The answer is that preprocessor
555     treats the %define construct as if it would be
556
557         %define __ %$abc goodbye
558
559     (note the white space between __ and %$abc). After my "fix" it
560     will "correctly" expand into
561
562         goodbye
563
564     as expected. Note that I use quotes around words "correct", "incorrect"
565     etc because this is rather a feature not a bug; however current behaviour
566     is more logical (and allows more advanced macro usage :-).
567
568     Same change was applied to:
569         %push,%macro,%imacro,%define,%idefine,%xdefine,%ixdefine,
570         %assign,%iassign,%undef
571
572 * A new directive [WARNING {+|-}warning-id] have been added. It works only
573     if the assembly phase is enabled (i.e. it doesn't work with nasm -e).
574
575 * A new warning type: macro-selfref. By default this warning is disabled;
576     when enabled NASM warns when a macro self-references itself; for example
577     the following source:
578
579         [WARNING macro-selfref]
580
581         %macro          push    1-*
582                 %rep    %0
583                         push    %1
584                         %rotate 1
585                 %endrep
586         %endmacro
587
588                         push    eax,ebx,ecx
589
590     will produce a warning, but if we remove the first line we won't see it
591     anymore (which is The Right Thing To Do {tm} IMHO since C preprocessor
592     eats such constructs without warnings at all).
593
594 * Added a "error" routine to preprocessor which always will set ERR_PASS1
595     bit in severity_code. This removes annoying repeated errors on first
596     and second passes from preprocessor.
597
598 * Added the %+ operator in single-line macros for concatenating two
599     identifiers. Usage example:
600
601         %define _myfunc _otherfunc
602         %define cextern(x) _ %+ x
603         cextern (myfunc)
604
605     After first expansion, third line will become "_myfunc". After this
606     expansion is performed again so it becomes "_otherunc".
607
608 * Now if preprocessor is in a non-emmitting state, no warning or error
609     will be emmitted. Example:
610
611         %if 1
612                 mov     eax,ebx
613         %else
614                 put anything you want between these two brackets,
615                 even macro-parameter references %1 or local labels %$zz
616                 or macro-local labels %%zz - no warning will be emmitted.
617         %endif
618
619 * Context-local variables on expansion as a last resort are looked up
620     in outer contexts. For example, the following piece:
621
622         %push   outer
623         %define %$a [esp]
624
625                 %push   inner
626                 %$a
627                 %pop
628         %pop
629
630     will expand correctly the fourth line to [esp]; if we'll define another
631     %$a inside the "inner" context, it will take precedence over outer
632     definition. However, this modification has been applied only to
633     expand_smacro and not to smacro_define: as a consequence expansion
634     looks in outer contexts, but %ifdef won't look in outer contexts.
635
636     This behaviour is needed because we don't want nested contexts to
637     act on already defined local macros. Example:
638
639         %define %$arg1  [esp+4]
640         test    eax,eax
641         if      nz
642                 mov     eax,%$arg1
643         endif
644
645     In this example the "if" mmacro enters into the "if" context, so %$arg1
646     is not valid anymore inside "if". Of course it could be worked around
647     by using explicitely %$$arg1 but this is ugly IMHO.
648
649 * Fixed memory leak in %undef. The origline wasn't freed before
650     exiting on success.
651
652 * Fixed trap in preprocessor when line expanded to empty set of tokens.
653     This happens, for example, in the following case:
654
655         #define SOMETHING
656         SOMETHING
657
658
659 0.98
660 ----
661
662 All changes since NASM 0.98p3 have been produced by H. Peter Anvin <hpa@zytor.com>.
663
664 * The documentation comment delimiter is \# not #.
665 * Allow EQU definitions to refer to external labels; reported by
666   Pedro Gimeno.
667 * Re-enable support for RDOFF v1; reported by Pedro Gimeno.
668 * Updated License file per OK from Simon and Julian.
669
670
671 0.98p9
672 ------
673
674 * Update documentation (although the instruction set reference will
675   have to wait; I don't want to hold up the 0.98 release for it.)
676 * Verified that the NASM implementation of the PEXTRW and PMOVMSKB
677   instructions is correct.  The encoding differs from what the Intel
678   manuals document, but the Pentium III behaviour matches NASM, not
679   the Intel manuals.
680 * Fix handling of implicit sizes in PSHUFW and PINSRW, reported by
681   Stefan Hoffmeister.
682 * Resurrect the -s option, which was removed when changing the
683   diagnostic output to stdout.
684
685
686 0.98p8
687 ------
688
689 * Fix for "DB" when NASM is running on a bigendian machine.
690 * Invoke insns.pl once for each output script, making Makefile.in
691   legal for "make -j".
692 * Improve the Unix configure-based makefiles to make package
693   creation easier.
694 * Included an RPM .spec file for building RPM (RedHat Package Manager)
695   packages on Linux or Unix systems.
696 * Fix Makefile dependency problems.
697 * Change src/rdsrc.pl to include sectioning information in info
698   output; required for install-info to work.
699 * Updated the RDOFF distribution to version 2 from Jules; minor
700   massaging to make it compile in my environment.
701 * Split doc files that can be built by anyone with a Perl interpreter off
702   into a separate archive.
703 * "Dress rehearsal" release!
704
705
706 0.98p7
707 ------
708
709 * Fixed opcodes with a third byte-sized immediate argument to not
710   complain if given "byte" on the immediate.
711 * Allow %undef to remove single-line macros with arguments.  This
712   matches the behaviour of #undef in the C preprocessor.
713 * Allow -d, -u, -i and -p to be specified as -D, -U, -I and -P for
714   compatibility with most C compilers and preprocessors.  This allows
715   Makefile options to be shared between cc and nasm, for example.
716 * Minor cleanups.
717 * Went through the list of Katmai instructions and hopefully fixed the
718   (rather few) mistakes in it.
719 * (Hopefully) fixed a number of disassembler bugs related to ambiguous
720   instructions (disambiguated by -p) and SSE instructions with REP.
721 * Fix for bug reported by Mark Junger: "call dword 0x12345678" should
722   work and may add an OSP (affected CALL, JMP, Jcc).
723 * Fix for environments when "stderr" isn't a compile-time constant.
724
725
726 0.98p6
727 ------
728
729 * Took officially over coordination of the 0.98 release; so drop
730   the p3.x notation. Skipped p4 and p5 to avoid confusion with John
731   Fine's J4 and J5 releases.
732 * Update the documentation; however, it still doesn't include
733   documentation for the various new instructions.  I somehow wonder if
734   it makes sense to have an instruction set reference in the assembler
735   manual when Intel et al have PDF versions of their manuals online.
736 * Recognize "idt" or "centaur" for the -p option to ndisasm.
737 * Changed error messages back to stderr where they belong, but add an
738   -E option to redirect them elsewhere (the DOS shell cannot redirect
739   stderr.)
740 * -M option to generate Makefile dependencies (based on code from Alex
741   Verstak.)
742 * %undef preprocessor directive, and -u option, that undefines a
743   single-line macro.
744 * OS/2 Makefile (Mkfiles/Makefile.os2) for Borland under OS/2; from
745   Chuck Crayne.
746 * Various minor bugfixes (reported by):
747   - Dangling %s in preproc.c (Martin Junker)
748 * THERE ARE KNOWN BUGS IN SSE AND THE OTHER KATMAI INSTRUCTIONS.  I am
749   on a trip and didn't bring the Katmai instruction reference, so I
750   can't work on them right now.
751 * Updated the License file per agreement with Simon and Jules to
752   include a GPL distribution clause.
753
754
755 0.98p3.7
756 --------
757
758 * (Hopefully) fixed the canned Makefiles to include the outrdf2 and
759   zoutieee modules.
760 * Renamed changes.asm to changed.asm.
761
762
763 0.98p3.6
764 --------
765
766 * Fixed a bunch of instructions that were added in 0.98p3.5 which had
767   memory operands, and the address-size prefix was missing from the
768   instruction pattern.
769
770
771 0.98p3.5
772 --------
773
774 * Merged in changes from John S. Fine's 0.98-J5 release.  John's based
775   0.98-J5 on my 0.98p3.3 release; this merges the changes.
776 * Expanded the instructions flag field to a long so we can fit more
777   flags; mark SSE (KNI) and AMD or Katmai-specific instructions as
778   such.
779 * Fix the "PRIV" flag on a bunch of instructions, and create new
780   "PROT" flag for protected-mode-only instructions (orthogonal to if
781   the instruction is privileged!) and new "SMM" flag for SMM-only
782   instructions.
783 * Added AMD-only SYSCALL and SYSRET instructions.
784 * Make SSE actually work, and add new Katmai MMX instructions.
785 * Added a -p (preferred vendor) option to ndisasm so that it can
786   distinguish e.g. Cyrix opcodes also used in SSE.  For example:
787
788         ndisasm -p cyrix aliased.bin
789         00000000  670F514310        paddsiw mm0,[ebx+0x10]
790         00000005  670F514320        paddsiw mm0,[ebx+0x20]
791         ndisasm -p intel aliased.bin
792         00000000  670F514310        sqrtps xmm0,[ebx+0x10]
793         00000005  670F514320        sqrtps xmm0,[ebx+0x20]
794 * Added a bunch of Cyrix-specific instructions.
795
796
797 0.98p3.4
798 --------
799
800 * Made at least an attempt to modify all the additional Makefiles (in
801   the Mkfiles directory).  I can't test it, but this was the best I
802   could do.
803 * DOS DJGPP+"Opus Make" Makefile from John S. Fine.
804 * changes.asm changes from John S. Fine.
805
806
807 0.98p3.3
808 --------
809
810 * Patch from Conan Brink to allow nesting of %rep directives.
811 * If we're going to allow INT01 as an alias for INT1/ICEBP (one of
812   Jules 0.98p3 changes), then we should allow INT03 as an alias for INT3
813   as well.
814 * Updated changes.asm to include the latest changes.
815 * Tried to clean up the <CR>s that had snuck in from a DOS/Windows
816   environment into my Unix environment, and try to make sure than
817   DOS/Windows users get them back.
818 * We would silently generate broken tools if insns.dat wasn't sorted
819   properly.  Change insns.pl so that the order doesn't matter.
820 * Fix bug in insns.pl (introduced by me) which would cause conditional
821   instructions to have an extra "cc" in disassembly, e.g. "jnz"
822   disassembled as "jccnz".
823
824
825 0.98p3.2
826 --------
827
828 * Merged in John S. Fine's changes from his 0.98-J4 prerelease; see
829   http://www.csoft.net/cz/johnfine/
830 * Changed previous "spotless" Makefile target (appropriate for distribution)
831   to "distclean", and added "cleaner" target which is same as "clean"
832   except deletes files generated by Perl scripts; "spotless" is union.
833 * Removed BASIC programs from distribution.  Get a Perl interpreter
834   instead (see below.)
835 * Calling this "pre-release 3.2" rather than "p3-hpa2" because of
836   John's contributions.
837 * Actually link in the IEEE output format (zoutieee.c); fix a bunch of
838   compiler warnings in that file.  Note I don't know what IEEE output
839   is supposed to look like, so these changes were made "blind".
840
841
842 0.98p3-hpa
843 ----------
844
845 * Merged nasm098p3.zip with nasm-0.97.tar.gz to create a fully
846   buildable version for Unix systems (Makefile.in updates, etc.)
847 * Changed insns.pl to create the instruction tables in nasm.h and
848   names.c, so that a new instruction can be added by adding it *only*
849   to insns.dat.
850 * Added the following new instructions: SYSENTER, SYSEXIT, FXSAVE,
851   FXRSTOR, UD1, UD2 (the latter two are two opcodes that Intel
852   guarantee will never be used; one of them is documented as UD2 in
853   Intel documentation, the other one just as "Undefined Opcode" --
854   calling it UD1 seemed to make sense.)
855 * MAX_SYMBOL was defined to be 9, but LOADALL286 and LOADALL386 are 10
856   characters long.  Now MAX_SYMBOL is derived from insns.dat.
857 * A note on the BASIC programs included: forget them.  insns.bas is
858   already out of date.  Get yourself a Perl interpreter for your
859   platform of choice at:
860
861         http://www.cpan.org/ports/index.html
862
863
864 0.98 pre-release 3
865 -------------------
866
867 added response file support, improved command line handling, new layout
868 help screen
869
870 fixed limit checking bug, 'OUT byte nn, reg' bug, and a couple of rdoff
871 related bugs, updated Wishlist; 0.98 Prerelease 3.
872
873
874 0.98 pre-release 2
875 -------------------
876
877 fixed bug in outcoff.c to do with truncating section names longer
878 than 8 characters, referencing beyond end of string; 0.98 pre-release 2
879
880
881 0.98 pre-released May 1999
882 --------------------------
883
884 Fixed a bug whereby STRUC didn't work at all in RDF.
885
886 Fixed a problem with group specification in PUBDEFs in OBJ.
887
888 Improved ease of adding new output formats. Contribution due to
889 Fox Cutter.
890
891 Fixed a bug in relocations in the `bin' format: was showing up when
892 a relocatable reference crossed an 8192-byte boundary in any output
893 section.
894
895 Fixed a bug in local labels: local-label lookups were inconsistent
896 between passes one and two if an EQU occurred between the definition
897 of a global label and the subsequent use of a local label local to
898 that global.
899
900 Fixed a seg-fault in the preprocessor (again) which happened when
901 you use a blank line as the first line of a multi-line macro
902 definition and then defined a label on the same line as a call to
903 that macro.
904
905 Fixed a stale-pointer bug in the handling of the NASM environment
906 variable. Thanks to Thomas McWilliams.
907
908 ELF had a hard limit on the number of sections which caused
909 segfaults when transgressed. Fixed.
910
911 Added ability for ndisasm to read from stdin by using `-' as the
912 filename.
913
914 ndisasm wasn't outputting the TO keyword. Fixed.
915
916 Fixed error cascade on bogus expression in %if - an error in
917 evaluation was causing the entire %if to be discarded, thus creating
918 trouble later when the %else or %endif was encountered.
919
920 Forward reference tracking was instruction-granular not operand-
921 granular, which was causing 286-specific code to be generated
922 needlessly on code of the form `shr word [forwardref],1'. Thanks to
923 Jim Hague for sending a patch.
924
925 All messages now appear on stdout, as sending them to stderr serves
926 no useful purpose other than to make redirection difficult.
927
928 Fixed the problem with EQUs pointing to an external symbol - this
929 now generates an error message.
930
931 Allowed multiple size prefixes to an operand, of which only the first
932 is taken into account.
933
934 Incorporated John Fine's changes, including fixes of a large number
935 of preprocessor bugs, some small problems in OBJ, and a reworking of
936 label handling to define labels before their line is assembled, rather
937 than after.
938
939 Reformatted a lot of the source code to be more readable. Included
940 'coding.txt' as a guideline for how to format code for contributors.
941
942 Stopped nested %reps causing a panic - they now cause a slightly more
943 friendly error message instead.
944
945 Fixed floating point constant problems (patch by Pedro Gimeno)
946
947 Fixed the return value of insn_size() not being checked for -1, indicating
948 an error.
949
950 Incorporated 3D now instructions.
951
952 Fixed the 'mov eax, eax + ebx' bug.
953
954 Fixed the GLOBAL EQU bug in ELF. Released developers release 3.
955
956 Incorporated John Fine's command line parsing changes
957
958 Incorporated David Lindauer's OMF debug support
959
960 Made changes for LCC 4.0 support (__NASM_CDecl__, removed register size
961 specification warning when sizes agree).
962
963 Released NASM 0.98 Pre-release 1
964
965
966 0.97 released December 1997
967 ---------------------------
968
969 This was entirely a bug-fix release to 0.96, which seems to have got
970 cursed. Silly me.
971
972 Fixed stupid mistake in OBJ which caused `MOV EAX,<constant>' to
973 fail. Caused by an error in the `MOV EAX,<segment>' support.
974
975 ndisasm hung at EOF when compiled with lcc on Linux because lcc on
976 Linux somehow breaks feof(). ndisasm now does not rely on feof().
977
978 A heading in the documentation was missing due to a markup error in
979 the indexing. Fixed.
980
981 Fixed failure to update all pointers on realloc() within extended-
982 operand code in parser.c. Was causing wrong behaviour and seg faults
983 on lines such as `dd 0.0,0.0,0.0,0.0,...'
984
985 Fixed a subtle preprocessor bug whereby invoking one multi-line
986 macro on the first line of the expansion of another, when the second
987 had been invoked with a label defined before it, didn't expand the
988 inner macro. 
989
990 Added internal.doc back in to the distribution archives - it was
991 missing in 0.96 *blush*
992
993 Fixed bug causing 0.96 to be unable to assemble its own test files,
994 specifically objtest.asm. *blush again*
995
996 Fixed seg-faults and bogus error messages caused by mismatching
997 %rep and %endrep within multi-line macro definitions.
998
999 Fixed a problem with buffer overrun in OBJ, which was causing
1000 corruption at ends of long PUBDEF records.
1001
1002 Separated DOS archives into main-program and documentation to reduce
1003 download size.
1004
1005
1006 0.96 released November 1997
1007 ---------------------------
1008
1009 Fixed a bug whereby, if `nasm sourcefile' would cause a filename
1010 collision warning and put output into `nasm.out', then `nasm
1011 sourcefile -o outputfile' still gave the warning even though the
1012 `-o' was honoured.
1013
1014 Fixed name pollution under Digital UNIX: one of its header files
1015 defined R_SP, which broke the enum in nasm.h.
1016
1017 Fixed minor instruction table problems: FUCOM and FUCOMP didn't have
1018 two-operand forms; NDISASM didn't recognise the longer register
1019 forms of PUSH and POP (eg FF F3 for PUSH BX); TEST mem,imm32 was
1020 flagged as undocumented; the 32-bit forms of CMOV had 16-bit operand
1021 size prefixes; `AAD imm' and `AAM imm' are no longer flagged as
1022 undocumented because the Intel Architecture reference documents
1023 them.
1024
1025 Fixed a problem with the local-label mechanism, whereby strange
1026 types of symbol (EQUs, auto-defined OBJ segment base symbols)
1027 interfered with the `previous global label' value and screwed up
1028 local labels.
1029
1030 Fixed a bug whereby the stub preprocessor didn't communicate with
1031 the listing file generator, so that the -a and -l options in
1032 conjunction would produce a useless listing file.
1033
1034 Merged `os2' object file format back into `obj', after discovering
1035 that `obj' _also_ shouldn't have a link pass separator in a module
1036 containing a non-trivial MODEND. Flat segments are now declared
1037 using the FLAT attribute. `os2' is no longer a valid object format
1038 name: use `obj'.
1039
1040 Removed the fixed-size temporary storage in the evaluator. Very very
1041 long expressions (like `mov ax,1+1+1+1+...' for two hundred 1s or
1042 so) should now no longer crash NASM.
1043
1044 Fixed a bug involving segfaults on disassembly of MMX instructions,
1045 by changing the meaning of one of the operand-type flags in nasm.h.
1046 This may cause other apparently unrelated MMX problems; it needs to
1047 be tested thoroughly.
1048
1049 Fixed some buffer overrun problems with large OBJ output files.
1050 Thanks to DJ Delorie for the bug report and fix.
1051
1052 Made preprocess-only mode actually listen to the %line markers as it
1053 prints them, so that it can report errors more sanely.
1054
1055 Re-designed the evaluator to keep more sensible track of expressions
1056 involving forward references: can now cope with previously-nightmare
1057 situations such as
1058    mov ax,foo | bar
1059    foo equ 1
1060    bar equ 2
1061
1062 Added the ALIGN and ALIGNB standard macros.
1063
1064 Added PIC support in ELF: use of WRT to obtain the four extra
1065 relocation types needed.
1066
1067 Added the ability for output file formats to define their own
1068 extensions to the GLOBAL, COMMON and EXTERN directives.
1069
1070 Implemented common-variable alignment, and global-symbol type and
1071 size declarations, in ELF.
1072
1073 Implemented NEAR and FAR keywords for common variables, plus
1074 far-common element size specification, in OBJ.
1075
1076 Added a feature whereby EXTERNs and COMMONs in OBJ can be given a
1077 default WRT specification (either a segment or a group).
1078
1079 Transformed the Unix NASM archive into an auto-configuring package.
1080
1081 Added a sanity-check for people applying SEG to things which are
1082 already segment bases: this previously went unnoticed by the SEG
1083 processing and caused OBJ-driver panics later.
1084
1085 Added the ability, in OBJ format, to deal with `MOV EAX,<segment>'
1086 type references: OBJ doesn't directly support dword-size segment
1087 base fixups, but as long as the low two bytes of the constant term
1088 are zero, a word-size fixup can be generated instead and it will
1089 work.
1090
1091 Added the ability to specify sections' alignment requirements in
1092 Win32 object files and pure binary files.
1093
1094 Added preprocess-time expression evaluation: the %assign (and
1095 %iassign) directive and the bare %if (and %elif) conditional. Added
1096 relational operators to the evaluator, for use only in %if
1097 constructs: the standard relationals = < > <= >= <> (and C-like
1098 synonyms == and !=) plus low-precedence logical operators &&, ^^ and
1099 ||.
1100
1101 Added a preprocessor repeat construct: %rep / %exitrep / %endrep.
1102
1103 Added the __FILE__ and __LINE__ standard macros.
1104
1105 Added a sanity check for number constants being greater than
1106 0xFFFFFFFF. The warning can be disabled.
1107
1108 Added the %0 token whereby a variadic multi-line macro can tell how
1109 many parameters it's been given in a specific invocation.
1110
1111 Added %rotate, allowing multi-line macro parameters to be cycled.
1112
1113 Added the `*' option for the maximum parameter count on multi-line
1114 macros, allowing them to take arbitrarily many parameters.
1115
1116 Added the ability for the user-level forms of EXTERN, GLOBAL and
1117 COMMON to take more than one argument.
1118
1119 Added the IMPORT and EXPORT directives in OBJ format, to deal with
1120 Windows DLLs.
1121
1122 Added some more preprocessor %if constructs: %ifidn / %ifidni (exact
1123 textual identity), and %ifid / %ifnum / %ifstr (token type testing).
1124
1125 Added the ability to distinguish SHL AX,1 (the 8086 version) from
1126 SHL AX,BYTE 1 (the 286-and-upwards version whose constant happens to
1127 be 1).
1128
1129 Added NetBSD/FreeBSD/OpenBSD's variant of a.out format, complete
1130 with PIC shared library features.
1131
1132 Changed NASM's idiosyncratic handling of FCLEX, FDISI, FENI, FINIT,
1133 FSAVE, FSTCW, FSTENV, and FSTSW to bring it into line with the
1134 otherwise accepted standard. The previous behaviour, though it was a
1135 deliberate feature, was a deliberate feature based on a
1136 misunderstanding. Apologies for the inconvenience.
1137
1138 Improved the flexibility of ABSOLUTE: you can now give it an
1139 expression rather than being restricted to a constant, and it can
1140 take relocatable arguments as well.
1141
1142 Added the ability for a variable to be declared as EXTERN multiple
1143 times, and the subsequent definitions are just ignored.
1144
1145 We now allow instruction prefixes (CS, DS, LOCK, REPZ etc) to be
1146 alone on a line (without a following instruction).
1147
1148 Improved sanity checks on whether the arguments to EXTERN, GLOBAL
1149 and COMMON are valid identifiers.
1150
1151 Added misc/exebin.mac to allow direct generation of .EXE files by
1152 hacking up an EXE header using DB and DW; also added test/binexe.asm
1153 to demonstrate the use of this. Thanks to Yann Guidon for
1154 contributing the EXE header code.
1155
1156 ndisasm forgot to check whether the input file had been successfully
1157 opened. Now it does. Doh!
1158
1159 Added the Cyrix extensions to the MMX instruction set.
1160
1161 Added a hinting mechanism to allow [EAX+EBX] and [EBX+EAX] to be
1162 assembled differently. This is important since [ESI+EBP] and
1163 [EBP+ESI] have different default base segment registers.
1164
1165 Added support for the PharLap OMF extension for 4096-byte segment
1166 alignment.
1167
1168
1169 0.95 released July 1997
1170 -----------------------
1171
1172 Fixed yet another ELF bug. This one manifested if the user relied on
1173 the default segment, and attempted to define global symbols without
1174 first explicitly declaring the target segment.
1175
1176 Added makefiles (for NASM and the RDF tools) to build Win32 console
1177 apps under Symantec C++. Donated by Mark Junker.
1178
1179 Added `macros.bas' and `insns.bas', QBasic versions of the Perl
1180 scripts that convert `standard.mac' to `macros.c' and convert
1181 `insns.dat' to `insnsa.c' and `insnsd.c'. Also thanks to Mark
1182 Junker.
1183
1184 Changed the diassembled forms of the conditional instructions so
1185 that JB is now emitted as JC, and other similar changes. Suggested
1186 list by Ulrich Doewich.
1187
1188 Added `@' to the list of valid characters to begin an identifier
1189 with.
1190
1191 Documentary changes, notably the addition of the `Common Problems'
1192 section in nasm.doc.
1193
1194 Fixed a bug relating to 32-bit PC-relative fixups in OBJ.
1195
1196 Fixed a bug in perm_copy() in labels.c which was causing exceptions
1197 in cleanup_labels() on some systems.
1198
1199 Positivity sanity check in TIMES argument changed from a warning to
1200 an error following a further complaint.
1201
1202 Changed the acceptable limits on byte and word operands to allow
1203 things like `~10111001b' to work.
1204
1205 Fixed a major problem in the preprocessor which caused seg-faults if
1206 macro definitions contained blank lines or comment-only lines.
1207
1208 Fixed inadequate error checking on the commas separating the
1209 arguments to `db', `dw' etc.
1210
1211 Fixed a crippling bug in the handling of macros with operand counts
1212 defined with a `+' modifier.
1213
1214 Fixed a bug whereby object file formats which stored the input file
1215 name in the output file (such as OBJ and COFF) weren't doing so
1216 correctly when the output file name was specified on the command
1217 line.
1218
1219 Removed [INC] and [INCLUDE] support for good, since they were
1220 obsolete anyway.
1221
1222 Fixed a bug in OBJ which caused all fixups to be output in 16-bit
1223 (old-format) FIXUPP records, rather than putting the 32-bit ones in
1224 FIXUPP32 (new-format) records.
1225
1226 Added, tentatively, OS/2 object file support (as a minor variant on
1227 OBJ).
1228
1229 Updates to Fox Cutter's Borland C makefile, Makefile.bc2.
1230
1231 Removed a spurious second fclose() on the output file.
1232
1233 Added the `-s' command line option to redirect all messages which
1234 would go to stderr (errors, help text) to stdout instead.
1235
1236 Added the `-w' command line option to selectively suppress some
1237 classes of assembly warning messages.
1238
1239 Added the `-p' pre-include and `-d' pre-define command-line options.
1240
1241 Added an include file search path: the `-i' command line option.
1242
1243 Fixed a silly little preprocessor bug whereby starting a line with a
1244 `%!' environment-variable reference caused an `unknown directive'
1245 error.
1246
1247 Added the long-awaited listing file support: the `-l' command line
1248 option.
1249
1250 Fixed a problem with OBJ format whereby, in the absence of any
1251 explicit segment definition, non-global symbols declared in the
1252 implicit default segment generated spurious EXTDEF records in the
1253 output.
1254
1255 Added the NASM environment variable.
1256
1257 From this version forward, Win32 console-mode binaries will be
1258 included in the DOS distribution in addition to the 16-bit binaries.
1259 Added Makefile.vc for this purpose.
1260
1261 Added `return 0;' to test/objlink.c to prevent compiler warnings.
1262
1263 Added the __NASM_MAJOR__ and __NASM_MINOR__ standard defines.
1264
1265 Added an alternative memory-reference syntax in which prefixing an
1266 operand with `&' is equivalent to enclosing it in square brackets,
1267 at the request of Fox Cutter.
1268
1269 Errors in pass two now cause the program to return a non-zero error
1270 code, which they didn't before.
1271
1272 Fixed the single-line macro cycle detection, which didn't work at
1273 all on macros with no parameters (caused an infinite loop). Also
1274 changed the behaviour of single-line macro cycle detection to work
1275 like cpp, so that macros like `extrn' as given in the documentation
1276 can be implemented.
1277
1278 Fixed the implementation of WRT, which was too restrictive in that
1279 you couldn't do `mov ax,[di+abc wrt dgroup]' because (di+abc) wasn't
1280 a relocatable reference.
1281
1282
1283 0.94 released April 1997
1284 ------------------------
1285
1286 Major item: added the macro processor.
1287
1288 Added undocumented instructions SMI, IBTS, XBTS and LOADALL286. Also
1289 reorganised CMPXCHG instruction into early-486 and Pentium forms.
1290 Thanks to Thobias Jones for the information.
1291
1292 Fixed two more stupid bugs in ELF, which were causing `ld' to
1293 continue to seg-fault in a lot of non-trivial cases.
1294
1295 Fixed a seg-fault in the label manager.
1296
1297 Stopped FBLD and FBSTP from _requiring_ the TWORD keyword, which is
1298 the only option for BCD loads/stores in any case.
1299
1300 Ensured FLDCW, FSTCW and FSTSW can cope with the WORD keyword, if
1301 anyone bothers to provide it. Previously they complained unless no
1302 keyword at all was present.
1303
1304 Some forms of FDIV/FDIVR and FSUB/FSUBR were still inverted: a
1305 vestige of a bug that I thought had been fixed in 0.92. This was
1306 fixed, hopefully for good this time...
1307
1308 Another minor phase error (insofar as a phase error can _ever_ be
1309 minor) fixed, this one occurring in code of the form
1310    rol ax,forward_reference
1311    forward_reference equ 1
1312
1313 The number supplied to TIMES is now sanity-checked for positivity,
1314 and also may be greater than 64K (which previously didn't work on
1315 16-bit systems).
1316
1317 Added Watcom C makefiles, and misc/pmw.bat, donated by Dominik Behr.
1318
1319 Added the INCBIN pseudo-opcode.
1320
1321 Due to the advent of the preprocessor, the [INCLUDE] and [INC]
1322 directives have become obsolete. They are still supported in this
1323 version, with a warning, but won't be in the next.
1324
1325 Fixed a bug in OBJ format, which caused incorrect object records to
1326 be output when absolute labels were made global.
1327
1328 Updates to RDOFF subdirectory, and changes to outrdf.c.
1329
1330
1331 0.93 released January 1997
1332 --------------------------
1333
1334 This release went out in a great hurry after semi-crippling bugs
1335 were found in 0.92.
1336
1337 Really _did_ fix the stack overflows this time. *blush*
1338
1339 Had problems with EA instruction sizes changing between passes, when
1340 an offset contained a forward reference and so 4 bytes were
1341 allocated for the offset in pass one; by pass two the symbol had
1342 been defined and happened to be a small absolute value, so only 1
1343 byte got allocated, causing instruction size mismatch between passes
1344 and hence incorrect address calculations. Fixed.
1345
1346 Stupid bug in the revised ELF section generation fixed (associated
1347 string-table section for .symtab was hard-coded as 7, even when this
1348 didn't fit with the real section table). Was causing `ld' to
1349 seg-fault under Linux.
1350
1351 Included a new Borland C makefile, Makefile.bc2, donated by Fox
1352 Cutter <lmb@comtch.iea.com>.
1353
1354
1355 0.92 released January 1997
1356 --------------------------
1357
1358 The FDIVP/FDIVRP and FSUBP/FSUBRP pairs had been inverted: this was
1359 fixed. This also affected the LCC driver.
1360
1361 Fixed a bug regarding 32-bit effective addresses of the form
1362 [other_register+ESP].
1363
1364 Documentary changes, notably documentation of the fact that Borland
1365 Win32 compilers use `obj' rather than `win32' object format.
1366
1367 Fixed the COMENT record in OBJ files, which was formatted
1368 incorrectly.
1369
1370 Fixed a bug causing segfaults in large RDF files.
1371
1372 OBJ format now strips initial periods from segment and group
1373 definitions, in order to avoid complications with the local label
1374 syntax.
1375
1376 Fixed a bug in disassembling far calls and jumps in NDISASM.
1377
1378 Added support for user-defined sections in COFF and ELF files.
1379
1380 Compiled the DOS binaries with a sensible amount of stack, to
1381 prevent stack overflows on any arithmetic expression containing
1382 parentheses.
1383
1384 Fixed a bug in handling of files that do not terminate in a newline.
1385
1386
1387 0.91 released November 1996
1388 ---------------------------
1389
1390 Loads of bug fixes.
1391 Support for RDF added.
1392 Support for DBG debugging format added.
1393 Support for 32-bit extensions to Microsoft OBJ format added.
1394 Revised for Borland C: some variable names changed, makefile added.
1395 LCC support revised to actually work.
1396 JMP/CALL NEAR/FAR notation added.
1397 `a16', `o16', `a32' and `o32' prefixes added.
1398 Range checking on short jumps implemented.
1399 MMX instruction support added.
1400 Negative floating point constant support added.
1401 Memory handling improved to bypass 64K barrier under DOS.
1402 $ prefix to force treatment of reserved words as identifiers added.
1403 Default-size mechanism for object formats added.
1404 Compile-time configurability added.
1405 `#', `@', `~' and `?' are now valid characters in labels.
1406 `-e' and `-k' options in NDISASM added.
1407
1408
1409 0.90 released October 1996
1410 --------------------------
1411
1412 First release version. First support for object file output. Other
1413 changes from previous version (0.3x) too numerous to document.