platform/upstream/nasm.git
17 years agoWhen compiling with gcc, compile with -W -Wall for maximum warnings.
H. Peter Anvin [Fri, 13 Apr 2007 19:59:20 +0000 (19:59 +0000)]
When compiling with gcc, compile with -W -Wall for maximum warnings.

17 years agoMacroize any compiler-specific code; macros defined in "compiler.h"
H. Peter Anvin [Fri, 13 Apr 2007 19:58:42 +0000 (19:58 +0000)]
Macroize any compiler-specific code; macros defined in "compiler.h"

Move anything compiler-specific to "compiler.h".

There was an unguarded use of __attribute__(()) in outmacho.c; also
require gcc 4+ for __builtin_ctlz().  Speed up the open-coded version, too.

17 years agoFixed distinction between char and int8_t data types.
Keith Kanios [Fri, 13 Apr 2007 16:47:53 +0000 (16:47 +0000)]
Fixed distinction between char and int8_t data types.

17 years agoComment "REX.I" should have been "REX.X"
Keith Kanios [Fri, 13 Apr 2007 01:17:45 +0000 (01:17 +0000)]
Comment "REX.I" should have been "REX.X"

17 years agoFixed c99 data-types after removal of typedefs.
Keith Kanios [Fri, 13 Apr 2007 00:52:54 +0000 (00:52 +0000)]
Fixed c99 data-types after removal of typedefs.

17 years agoAdded Dev-Cpp Makefile
Keith Kanios [Fri, 13 Apr 2007 00:43:50 +0000 (00:43 +0000)]
Added Dev-Cpp Makefile

17 years ago*** empty log message ***
Keith Kanios [Fri, 13 Apr 2007 00:38:29 +0000 (00:38 +0000)]
*** empty log message ***

17 years agoRemove redundant inclusion of <inttypes.h>
H. Peter Anvin [Thu, 12 Apr 2007 17:58:02 +0000 (17:58 +0000)]
Remove redundant inclusion of <inttypes.h>

"hash.h" includes <inttypes.h>, no need to do it again.

17 years agoRemove obsolete types; add <inttypes.h> where needed; header fixes
H. Peter Anvin [Thu, 12 Apr 2007 16:54:50 +0000 (16:54 +0000)]
Remove obsolete types; add <inttypes.h> where needed; header fixes

- Remove obsolete types like "uint32"; use "uint32_t" consistently.
- Make sure we include <inttypes.h> where needed.
- Header file guards should be FOO_H or SUBDIR_FOO_H; _FOO_H infringes
  on the C implementation's namespace and should only be used when
  writing libc!
- Change a few "int8_t" back to "char" where appropriate.  There are
  a lot more places where that should be done, though.
- Clean up the check for getuid/getgid in rdoff/rdlar.h.

17 years agoautogen.sh script to create configure, et al.
H. Peter Anvin [Thu, 12 Apr 2007 16:25:58 +0000 (16:25 +0000)]
autogen.sh script to create configure, et al.

It's become custom to create a script called autogen.sh, which creates
all the auto-generated files using all the appropriate auto* tools when
run, so one doesn't have to worry about checking them into the repository.
This seems like a good idea, follow suit.

17 years agoFixed c99 support for RDOFF Tools
Keith Kanios [Thu, 12 Apr 2007 16:23:11 +0000 (16:23 +0000)]
Fixed c99 support for RDOFF Tools

17 years agooutmacho.c: Don't assume __builtin_ctzl exists for gcc < 4
H. Peter Anvin [Thu, 12 Apr 2007 16:12:09 +0000 (16:12 +0000)]
outmacho.c: Don't assume __builtin_ctzl exists for gcc < 4

__builtin_ctzl exists for all architectures on gcc 4, but not for all
versions of gcc 3 and lower.  For simplicity, make the cutoff gcc 4.

17 years agoGeneral push for x86-64 support, dubbed 0.99.00.
Keith Kanios [Thu, 12 Apr 2007 02:40:54 +0000 (02:40 +0000)]
General push for x86-64 support, dubbed 0.99.00.

18 years agoAdd VMX instructions.
Eric Christopher [Thu, 2 Mar 2006 18:35:09 +0000 (18:35 +0000)]
Add VMX instructions.

18 years agoFix documentation building for non-srcdir builds. Still bugs in .ps implementation.
Eric Christopher [Sat, 4 Feb 2006 00:23:30 +0000 (00:23 +0000)]
Fix documentation building for non-srcdir builds. Still bugs in .ps implementation.
Add Mach-O documentation.

18 years ago2006-02-02 Eric Christopher <echristo@apple.com>
Eric Christopher [Thu, 2 Feb 2006 21:50:47 +0000 (21:50 +0000)]
2006-02-02  Eric Christopher  <echristo@apple.com>
    Wade Tregaskis  <wtregaskis@apple.com>

* output/outmacho.c (macho_cleanup): Depend on symbols
existing.

18 years ago2005-12-08 Wade Tregaskis <wtregaskis@apple.com>
Eric Christopher [Fri, 9 Dec 2005 00:27:26 +0000 (00:27 +0000)]
2005-12-08  Wade Tregaskis <wtregaskis@apple.com>

* nasm/nasm/output/outmacho.c (struct section): Added "align" field.
(sectmap): Added ".rodata" section.
(exact_log2): New.
(macho_section): Added support for section attributes.
        "align=" and "data" specifically.
(macho_write_segment): Write out section alignment to Mach-O file.

18 years ago2005-12-05 Eric Christopher <echristo@apple.com>
Eric Christopher [Mon, 5 Dec 2005 23:17:17 +0000 (23:17 +0000)]
2005-12-05  Eric Christopher  <echristo@apple.com>

        * nasm/nasm/output/outmacho.c (macho_write_section): Don't add
        section offset to the symbol to be relocated.
        (add_reloc): Update comment.

19 years agoAllow CFLAGS to be overridden from make.
Eric Christopher [Thu, 20 Oct 2005 19:46:34 +0000 (19:46 +0000)]
Allow CFLAGS to be overridden from make.

19 years agoAdded section attributes, in particular S_ATTR_SOME_INSTRUCTIONS and update .text.
Eric Christopher [Fri, 7 Oct 2005 22:30:56 +0000 (22:30 +0000)]
Added section attributes, in particular S_ATTR_SOME_INSTRUCTIONS and update .text.
Change symbols from saa to explicitly allocated.
macho_layout_symbols: new function to sort symbols and renumber.
adjust symtab output accordingly
fixup relocs after renumbering
add relocation debugging routines.

19 years agoBreak macho_cleanup into separate functions.
Eric Christopher [Mon, 26 Sep 2005 22:13:42 +0000 (22:13 +0000)]
Break macho_cleanup into separate functions.

19 years agoRun misc/Nindent on outmacho.c
Eric Christopher [Thu, 22 Sep 2005 21:41:17 +0000 (21:41 +0000)]
Run misc/Nindent on outmacho.c

19 years agoAdd basic support for Mach-O file format.
Eric Christopher [Thu, 22 Sep 2005 21:22:33 +0000 (21:22 +0000)]
Add basic support for Mach-O file format.

19 years agofix outobj.c bug - every 256th extern crashed nasm
Frank Kotler [Wed, 8 Jun 2005 16:41:10 +0000 (16:41 +0000)]
fix outobj.c bug - every 256th extern crashed nasm

-

19 years agoJindrich Novy's buffer overrun patch to outieee.c
Frank Kotler [Mon, 9 May 2005 16:34:43 +0000 (16:34 +0000)]
Jindrich Novy's buffer overrun patch to outieee.c

-

19 years agoadd John Coffman's optimizer documentation
Frank Kotler [Thu, 10 Mar 2005 02:03:11 +0000 (02:03 +0000)]
add John Coffman's optimizer documentation

19 years agoUpdate "version" to 0.98.40
Frank Kotler [Fri, 4 Feb 2005 22:17:49 +0000 (22:17 +0000)]
Update "version" to 0.98.40

19 years agoupdate my address in AUTHORS
Frank Kotler [Mon, 17 Jan 2005 05:30:47 +0000 (05:30 +0000)]
update my address in AUTHORS

19 years agoApply Nindent to all .c and .h files
H. Peter Anvin [Sat, 15 Jan 2005 22:15:51 +0000 (22:15 +0000)]
Apply Nindent to all .c and .h files

19 years agoUpdate dependencies
H. Peter Anvin [Fri, 14 Jan 2005 23:05:31 +0000 (23:05 +0000)]
Update dependencies

19 years agoFix comment
H. Peter Anvin [Fri, 14 Jan 2005 23:03:42 +0000 (23:03 +0000)]
Fix comment

19 years agoUpdate to match SF changes
H. Peter Anvin [Fri, 14 Jan 2005 22:57:03 +0000 (22:57 +0000)]
Update to match SF changes

19 years agoConsistent capitalization
H. Peter Anvin [Fri, 14 Jan 2005 22:56:01 +0000 (22:56 +0000)]
Consistent capitalization

19 years agoupdate "CHANGES"
Frank Kotler [Thu, 13 Jan 2005 02:52:55 +0000 (02:52 +0000)]
update "CHANGES"

19 years agoDummy change to test CVS mail
H. Peter Anvin [Sat, 1 Jan 2005 22:54:25 +0000 (22:54 +0000)]
Dummy change to test CVS mail

19 years agoDocument maximum identifier length
Frank Kotler [Fri, 31 Dec 2004 03:38:32 +0000 (03:38 +0000)]
Document maximum identifier length

19 years agoScript to format the source code in a standard format
H. Peter Anvin [Wed, 29 Dec 2004 23:53:40 +0000 (23:53 +0000)]
Script to format the source code in a standard format

19 years agoAdd ieee_ prefix to filenames with otherwise highly ambiguous names;
H. Peter Anvin [Wed, 29 Dec 2004 00:41:28 +0000 (00:41 +0000)]
Add ieee_ prefix to filenames with otherwise highly ambiguous names;
esp round() which is a standard C function.

19 years agoAndreas Ericsson's patch to misc/nasm.sl
Frank Kotler [Tue, 21 Dec 2004 18:06:22 +0000 (18:06 +0000)]
Andreas Ericsson's patch to misc/nasm.sl

-

19 years agoAdded "splint" as a target to simplify running splint on all sources.
Ed Beroset [Fri, 17 Dec 2004 01:06:10 +0000 (01:06 +0000)]
Added "splint" as a target to simplify running splint on all sources.

19 years agoPlaced guards around strdup declaration to avoid compiler errors on sane
Ed Beroset [Fri, 17 Dec 2004 00:55:19 +0000 (00:55 +0000)]
Placed guards around strdup declaration to avoid compiler errors on sane
systems.

19 years agoAdded todo item to point out the somewhat tricky fact about snprintf's
Ed Beroset [Wed, 15 Dec 2004 23:32:57 +0000 (23:32 +0000)]
Added todo item to point out the somewhat tricky fact about snprintf's
return value.

19 years agoadded checks for vsnprintf and snprintf (ISO C99) and changed gcc
Ed Beroset [Wed, 15 Dec 2004 23:02:20 +0000 (23:02 +0000)]
added checks for vsnprintf and snprintf (ISO C99) and changed gcc
compile flag from -ansi to -std=c99

19 years agoCorrected typo in variable name.
Ed Beroset [Wed, 15 Dec 2004 23:00:13 +0000 (23:00 +0000)]
Corrected typo in variable name.

19 years agochanged last sprintf to more secure snprintf to prevent vulnerability to buffer
Ed Beroset [Wed, 15 Dec 2004 18:30:54 +0000 (18:30 +0000)]
changed last sprintf to more secure snprintf to prevent vulnerability to buffer
overflow exploits.

19 years agochanged sprintf to more secure snprintf to prevent vulnerability to buffer
Ed Beroset [Wed, 15 Dec 2004 18:27:50 +0000 (18:27 +0000)]
changed sprintf to more secure snprintf to prevent vulnerability to buffer
overflow exploits.

19 years agoadded buffer length parameter to prevent vulnerability to buffer
Ed Beroset [Wed, 15 Dec 2004 18:27:21 +0000 (18:27 +0000)]
added buffer length parameter to prevent vulnerability to buffer
overflow exploits.

19 years agoadded buffer length parameters to prevent vulnerability to buffer
Ed Beroset [Wed, 15 Dec 2004 18:26:37 +0000 (18:26 +0000)]
added buffer length parameters to prevent vulnerability to buffer
overflow exploits.

19 years agochanged sprintf to more secure snprintf to prevent vulnerability to buffer
Ed Beroset [Wed, 15 Dec 2004 18:03:20 +0000 (18:03 +0000)]
changed sprintf to more secure snprintf to prevent vulnerability to buffer
overflow exploits.

19 years agochanged sprintf to more secure snprintf to prevent vulnerability to buffer
Ed Beroset [Wed, 15 Dec 2004 17:10:25 +0000 (17:10 +0000)]
changed sprintf to more secure snprintf to prevent vulnerability to buffer
overflow exploits.

19 years agocleaned up most but not all sprintf() and vsprintf() calls to avoid
Ed Beroset [Wed, 15 Dec 2004 17:07:03 +0000 (17:07 +0000)]
cleaned up most but not all sprintf() and vsprintf() calls to avoid
vulnerability to buffer overflow exploits.

19 years agoreplaced vsprintf() with vsnprintf() to avoid buffer overflow exploit
Ed Beroset [Wed, 15 Dec 2004 16:45:46 +0000 (16:45 +0000)]
replaced vsprintf() with vsnprintf() to avoid buffer overflow exploit

20 years agooutrdf2.c now uses the same definitions of RDOFF2 format that RDOFF utils.
Yuri Zaporogets [Wed, 15 Sep 2004 06:54:34 +0000 (06:54 +0000)]
outrdf2.c now uses the same definitions of RDOFF2 format that RDOFF utils.
Export/import/common label size is increased from 33 to 64. Fixed the bug
that caused wrong behavior of rdfgetheaderrec() if label length was 32.
Changed error codes from numeric values to symbolic constants.
Moved some routines from rdfdump.c to rdoff.c. They will be utilized also
by rdfdisasm, which is being developed.

20 years agoRemoved old header that was once used by ldrdf.
Yuri Zaporogets [Sun, 8 Aug 2004 20:09:32 +0000 (20:09 +0000)]
Removed old header that was once used by ldrdf.

20 years agoInclude <string.h> to get rid of compiler warnings
Yuri Zaporogets [Sat, 15 May 2004 14:41:04 +0000 (14:41 +0000)]
Include <string.h> to get rid of compiler warnings

20 years agoFix of the critical bug in ldrdf.c
Yuri Zaporogets [Sat, 15 May 2004 09:48:58 +0000 (09:48 +0000)]
Fix of the critical bug in ldrdf.c

20 years agofix as86 .bss handling per John Coffman's patch
Frank Kotler [Sun, 25 Apr 2004 02:57:00 +0000 (02:57 +0000)]
fix as86 .bss handling per John Coffman's patch

20 years agofix man page per Eric Raymond
Frank Kotler [Wed, 7 Jan 2004 06:17:21 +0000 (06:17 +0000)]
fix man page per Eric Raymond

20 years agoTouch up docs
Frank Kotler [Fri, 12 Dec 2003 07:54:15 +0000 (07:54 +0000)]
Touch up docs

20 years agoUpdate rdoff
Frank Kotler [Fri, 12 Dec 2003 06:18:07 +0000 (06:18 +0000)]
Update rdoff

21 years agoFor compatibility with older code removed feature:
Nickolay Yurchenko [Fri, 26 Sep 2003 19:03:40 +0000 (19:03 +0000)]
For compatibility with older code removed feature:
* Unterminated string auto termination.

21 years agoBacked out another patch =)
Stanislav Karchebny [Fri, 26 Sep 2003 04:20:30 +0000 (04:20 +0000)]
Backed out another patch =)

21 years agoRevert erroneous macro added and modify __OUTPUT_FORMAT__ to a string const
Stanislav Karchebny [Thu, 25 Sep 2003 11:43:28 +0000 (11:43 +0000)]
Revert erroneous macro added and modify __OUTPUT_FORMAT__ to a string const

21 years agoConsistency fix
Stanislav Karchebny [Thu, 25 Sep 2003 11:28:45 +0000 (11:28 +0000)]
Consistency fix

21 years agoAdded _NASM_FORMAT_ macro
Stanislav Karchebny [Wed, 24 Sep 2003 10:30:56 +0000 (10:30 +0000)]
Added _NASM_FORMAT_ macro

21 years ago* Unterminated string auto termination.
Nickolay Yurchenko [Sun, 21 Sep 2003 20:38:43 +0000 (20:38 +0000)]
* Unterminated string auto termination.
* %(el)if(n)idn insensitivity to string quotes difference (#809300).

21 years agoDocument fix
H. Peter Anvin [Fri, 12 Sep 2003 22:31:42 +0000 (22:31 +0000)]
Document fix

21 years agoDon't delete config.h.in when doing "make spotless"
H. Peter Anvin [Fri, 12 Sep 2003 22:30:50 +0000 (22:30 +0000)]
Don't delete config.h.in when doing "make spotless"

21 years agoNext version = 0.98.39
H. Peter Anvin [Fri, 12 Sep 2003 20:52:49 +0000 (20:52 +0000)]
Next version = 0.98.39

21 years agoFix list iterator
H. Peter Anvin [Fri, 12 Sep 2003 20:49:25 +0000 (20:49 +0000)]
Fix list iterator

21 years agoDocument change to -g internals
H. Peter Anvin [Fri, 12 Sep 2003 17:06:52 +0000 (17:06 +0000)]
Document change to -g internals

21 years agoIf we don't specify -g, actually suppress debugging output
H. Peter Anvin [Wed, 10 Sep 2003 23:34:23 +0000 (23:34 +0000)]
If we don't specify -g, actually suppress debugging output

21 years agoUse the version of tmap.nas that actually caused problems
H. Peter Anvin [Wed, 10 Sep 2003 23:33:38 +0000 (23:33 +0000)]
Use the version of tmap.nas that actually caused problems

21 years agoMore test files...
H. Peter Anvin [Mon, 8 Sep 2003 22:59:45 +0000 (22:59 +0000)]
More test files...

21 years agoCannot free "lnfname" since it's now static...
H. Peter Anvin [Mon, 8 Sep 2003 22:59:07 +0000 (22:59 +0000)]
Cannot free "lnfname" since it's now static...

21 years agoMake sure autoheader has actually been run by conditionalizing
H. Peter Anvin [Mon, 8 Sep 2003 20:02:10 +0000 (20:02 +0000)]
Make sure autoheader has actually been run by conditionalizing
the running of configure on the existence of config.h.in.

21 years agofixed bug #677841 by limiting the scanner to no more than 4095 characters for a singl...
Ed Beroset [Mon, 8 Sep 2003 01:49:30 +0000 (01:49 +0000)]
fixed bug #677841 by limiting the scanner to no more than 4095 characters for a single ID token

21 years agofixed bug #677841 by limiting the scanner to no more than 4095 characters for a singl...
Ed Beroset [Mon, 8 Sep 2003 00:30:40 +0000 (00:30 +0000)]
fixed bug #677841 by limiting the scanner to no more than 4095 characters for a single ID token

21 years ago* Fix for %rep with no arguments (#560568)
Nickolay Yurchenko [Sun, 7 Sep 2003 22:46:26 +0000 (22:46 +0000)]
* Fix for %rep with no arguments (#560568)
* Fix concatenation of preprocessor function call  (#794686)

21 years agonasm_malloc-ize Martin's outelf.c stabs stuff
Frank Kotler [Sat, 6 Sep 2003 05:48:16 +0000 (05:48 +0000)]
nasm_malloc-ize Martin's outelf.c stabs stuff

21 years agoquick fix to -f obj debug format - put "static" back in assemble.c
Frank Kotler [Sat, 6 Sep 2003 04:45:37 +0000 (04:45 +0000)]
quick fix to -f obj debug format - put "static" back in assemble.c

-

21 years agoDocument ELF fix
H. Peter Anvin [Sat, 6 Sep 2003 00:55:49 +0000 (00:55 +0000)]
Document ELF fix

21 years agoFirst attempt at fixing the stabs/ELF issue.
H. Peter Anvin [Sat, 6 Sep 2003 00:50:27 +0000 (00:50 +0000)]
First attempt at fixing the stabs/ELF issue.

21 years agoDocument STR fix
H. Peter Anvin [Tue, 2 Sep 2003 21:39:22 +0000 (21:39 +0000)]
Document STR fix

21 years agoSTR also has SMSW/SLDT-like semantics for operand size
H. Peter Anvin [Tue, 2 Sep 2003 21:38:48 +0000 (21:38 +0000)]
STR also has SMSW/SLDT-like semantics for operand size

21 years agoAdd autoheader command
H. Peter Anvin [Mon, 1 Sep 2003 04:20:40 +0000 (04:20 +0000)]
Add autoheader command

21 years agoEnable the use of a config.h file and autoheader. At this point we don't
H. Peter Anvin [Mon, 1 Sep 2003 04:19:37 +0000 (04:19 +0000)]
Enable the use of a config.h file and autoheader.  At this point we don't
actually *use* the resulting configuration file, but it keeps autoconf
from creating an insanely long compiler command line, which can cause
problems all by itself.  Eventually we can do:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

... to get the same information.

21 years ago-O10 and -O15, not -O5 and -O10
H. Peter Anvin [Mon, 1 Sep 2003 04:14:15 +0000 (04:14 +0000)]
-O10 and -O15, not -O5 and -O10

21 years agoNow working toward 0.98.38
H. Peter Anvin [Sat, 30 Aug 2003 05:04:22 +0000 (05:04 +0000)]
Now working toward 0.98.38

21 years agoSupport building 16-bit DOS binaries using OpenWatcom
H. Peter Anvin [Sat, 30 Aug 2003 03:49:30 +0000 (03:49 +0000)]
Support building 16-bit DOS binaries using OpenWatcom

21 years agoUpdate for newer RH releases
H. Peter Anvin [Fri, 29 Aug 2003 21:03:44 +0000 (21:03 +0000)]
Update for newer RH releases

21 years ago%{_arch} doesn't work with newer RPMs; use %{_target_cpu} instead
H. Peter Anvin [Fri, 29 Aug 2003 20:48:37 +0000 (20:48 +0000)]
%{_arch} doesn't work with newer RPMs; use %{_target_cpu} instead

21 years agoFix "make doc"
H. Peter Anvin [Fri, 29 Aug 2003 20:00:26 +0000 (20:00 +0000)]
Fix "make doc"

21 years agoDon't rename the spec file
H. Peter Anvin [Fri, 29 Aug 2003 19:58:02 +0000 (19:58 +0000)]
Don't rename the spec file

21 years agoMaking the spec file part of dist is something for the Makefile, not
H. Peter Anvin [Fri, 29 Aug 2003 19:56:40 +0000 (19:56 +0000)]
Making the spec file part of dist is something for the Makefile, not
for the release script

21 years agoInclude spec file in tarball for rpm -ta
H. Peter Anvin [Fri, 29 Aug 2003 19:53:10 +0000 (19:53 +0000)]
Include spec file in tarball for rpm -ta

21 years agoUpdate URLs; make compatible with newer RPMs
H. Peter Anvin [Fri, 29 Aug 2003 19:50:25 +0000 (19:50 +0000)]
Update URLs; make compatible with newer RPMs

21 years agoStandard formatting.
H. Peter Anvin [Fri, 29 Aug 2003 19:37:58 +0000 (19:37 +0000)]
Standard formatting.

21 years agoDocument -O2/-O3 change
H. Peter Anvin [Fri, 29 Aug 2003 19:29:37 +0000 (19:29 +0000)]
Document -O2/-O3 change

21 years agoUpdate documentation slightly; remove weird special-casing of -O2 and -O3
H. Peter Anvin [Fri, 29 Aug 2003 19:25:46 +0000 (19:25 +0000)]
Update documentation slightly; remove weird special-casing of -O2 and -O3