platform/upstream/nasm.git
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.

18 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.

18 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.

18 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.

18 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

18 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

19 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.

19 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

20 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.

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

20 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

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

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

20 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).

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

20 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"

20 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

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

20 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

20 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

20 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

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

20 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...

20 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.

20 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

20 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

20 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)

20 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

20 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

-

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

20 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.

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

20 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

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

20 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.

20 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

20 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

20 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

20 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

20 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

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

20 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

20 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

20 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

20 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

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

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

20 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

20 years agoUpdate
H. Peter Anvin [Fri, 29 Aug 2003 19:06:40 +0000 (19:06 +0000)]
Update

20 years agoStandard line breaks
H. Peter Anvin [Fri, 29 Aug 2003 19:05:39 +0000 (19:05 +0000)]
Standard line breaks

20 years agoUpdate status
H. Peter Anvin [Fri, 29 Aug 2003 19:01:46 +0000 (19:01 +0000)]
Update status

20 years agoHandle subdirectories
H. Peter Anvin [Fri, 29 Aug 2003 18:57:50 +0000 (18:57 +0000)]
Handle subdirectories

20 years agoRemove obsolete comment
H. Peter Anvin [Fri, 29 Aug 2003 18:55:22 +0000 (18:55 +0000)]
Remove obsolete comment

20 years agoTouch up Makefile.b32
Frank Kotler [Fri, 29 Aug 2003 05:15:35 +0000 (05:15 +0000)]
Touch up Makefile.b32

20 years agoSMSW and SLDT are implicitly 16 bits when accessing memory, but can set
H. Peter Anvin [Wed, 27 Aug 2003 21:25:44 +0000 (21:25 +0000)]
SMSW and SLDT are implicitly 16 bits when accessing memory, but can set
the upper part of a 16-bit register if used with a 32-bit register
argument.

20 years agoAlexei's patch to allow "-I" paths to be searched for "incbin"ed files
Frank Kotler [Wed, 27 Aug 2003 11:33:56 +0000 (11:33 +0000)]
Alexei's patch to allow "-I" paths to be searched for "incbin"ed files