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.
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.
Keith Kanios [Fri, 13 Apr 2007 16:47:53 +0000 (16:47 +0000)]
Fixed distinction between char and int8_t data types.
Keith Kanios [Fri, 13 Apr 2007 01:17:45 +0000 (01:17 +0000)]
Comment "REX.I" should have been "REX.X"
Keith Kanios [Fri, 13 Apr 2007 00:52:54 +0000 (00:52 +0000)]
Fixed c99 data-types after removal of typedefs.
Keith Kanios [Fri, 13 Apr 2007 00:43:50 +0000 (00:43 +0000)]
Added Dev-Cpp Makefile
Keith Kanios [Fri, 13 Apr 2007 00:38:29 +0000 (00:38 +0000)]
*** empty log message ***
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.
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.
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.
Keith Kanios [Thu, 12 Apr 2007 16:23:11 +0000 (16:23 +0000)]
Fixed c99 support for RDOFF Tools
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.
Keith Kanios [Thu, 12 Apr 2007 02:40:54 +0000 (02:40 +0000)]
General push for x86-64 support, dubbed 0.99.00.
Eric Christopher [Thu, 2 Mar 2006 18:35:09 +0000 (18:35 +0000)]
Add VMX instructions.
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.
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.
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.
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.
Eric Christopher [Thu, 20 Oct 2005 19:46:34 +0000 (19:46 +0000)]
Allow CFLAGS to be overridden from make.
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.
Eric Christopher [Mon, 26 Sep 2005 22:13:42 +0000 (22:13 +0000)]
Break macho_cleanup into separate functions.
Eric Christopher [Thu, 22 Sep 2005 21:41:17 +0000 (21:41 +0000)]
Run misc/Nindent on outmacho.c
Eric Christopher [Thu, 22 Sep 2005 21:22:33 +0000 (21:22 +0000)]
Add basic support for Mach-O file format.
Frank Kotler [Wed, 8 Jun 2005 16:41:10 +0000 (16:41 +0000)]
fix outobj.c bug - every 256th extern crashed nasm
-
Frank Kotler [Mon, 9 May 2005 16:34:43 +0000 (16:34 +0000)]
Jindrich Novy's buffer overrun patch to outieee.c
-
Frank Kotler [Thu, 10 Mar 2005 02:03:11 +0000 (02:03 +0000)]
add John Coffman's optimizer documentation
Frank Kotler [Fri, 4 Feb 2005 22:17:49 +0000 (22:17 +0000)]
Update "version" to 0.98.40
Frank Kotler [Mon, 17 Jan 2005 05:30:47 +0000 (05:30 +0000)]
update my address in AUTHORS
H. Peter Anvin [Sat, 15 Jan 2005 22:15:51 +0000 (22:15 +0000)]
Apply Nindent to all .c and .h files
H. Peter Anvin [Fri, 14 Jan 2005 23:05:31 +0000 (23:05 +0000)]
Update dependencies
H. Peter Anvin [Fri, 14 Jan 2005 23:03:42 +0000 (23:03 +0000)]
Fix comment
H. Peter Anvin [Fri, 14 Jan 2005 22:57:03 +0000 (22:57 +0000)]
Update to match SF changes
H. Peter Anvin [Fri, 14 Jan 2005 22:56:01 +0000 (22:56 +0000)]
Consistent capitalization
Frank Kotler [Thu, 13 Jan 2005 02:52:55 +0000 (02:52 +0000)]
update "CHANGES"
H. Peter Anvin [Sat, 1 Jan 2005 22:54:25 +0000 (22:54 +0000)]
Dummy change to test CVS mail
Frank Kotler [Fri, 31 Dec 2004 03:38:32 +0000 (03:38 +0000)]
Document maximum identifier length
H. Peter Anvin [Wed, 29 Dec 2004 23:53:40 +0000 (23:53 +0000)]
Script to format the source code in a standard format
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.
Frank Kotler [Tue, 21 Dec 2004 18:06:22 +0000 (18:06 +0000)]
Andreas Ericsson's patch to misc/nasm.sl
-
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.
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.
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.
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
Ed Beroset [Wed, 15 Dec 2004 23:00:13 +0000 (23:00 +0000)]
Corrected typo in variable name.
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.
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.
Ed Beroset [Wed, 15 Dec 2004 18:27:21 +0000 (18:27 +0000)]
added buffer length parameter to prevent vulnerability to buffer
overflow exploits.
Ed Beroset [Wed, 15 Dec 2004 18:26:37 +0000 (18:26 +0000)]
added buffer length parameters to prevent vulnerability to buffer
overflow exploits.
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.
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.
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.
Ed Beroset [Wed, 15 Dec 2004 16:45:46 +0000 (16:45 +0000)]
replaced vsprintf() with vsnprintf() to avoid buffer overflow exploit
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.
Yuri Zaporogets [Sun, 8 Aug 2004 20:09:32 +0000 (20:09 +0000)]
Removed old header that was once used by ldrdf.
Yuri Zaporogets [Sat, 15 May 2004 14:41:04 +0000 (14:41 +0000)]
Include <string.h> to get rid of compiler warnings
Yuri Zaporogets [Sat, 15 May 2004 09:48:58 +0000 (09:48 +0000)]
Fix of the critical bug in ldrdf.c
Frank Kotler [Sun, 25 Apr 2004 02:57:00 +0000 (02:57 +0000)]
fix as86 .bss handling per John Coffman's patch
Frank Kotler [Wed, 7 Jan 2004 06:17:21 +0000 (06:17 +0000)]
fix man page per Eric Raymond
Frank Kotler [Fri, 12 Dec 2003 07:54:15 +0000 (07:54 +0000)]
Touch up docs
Frank Kotler [Fri, 12 Dec 2003 06:18:07 +0000 (06:18 +0000)]
Update rdoff
Nickolay Yurchenko [Fri, 26 Sep 2003 19:03:40 +0000 (19:03 +0000)]
For compatibility with older code removed feature:
* Unterminated string auto termination.
Stanislav Karchebny [Fri, 26 Sep 2003 04:20:30 +0000 (04:20 +0000)]
Backed out another patch =)
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
Stanislav Karchebny [Thu, 25 Sep 2003 11:28:45 +0000 (11:28 +0000)]
Consistency fix
Stanislav Karchebny [Wed, 24 Sep 2003 10:30:56 +0000 (10:30 +0000)]
Added _NASM_FORMAT_ macro
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).
H. Peter Anvin [Fri, 12 Sep 2003 22:31:42 +0000 (22:31 +0000)]
Document fix
H. Peter Anvin [Fri, 12 Sep 2003 22:30:50 +0000 (22:30 +0000)]
Don't delete config.h.in when doing "make spotless"
H. Peter Anvin [Fri, 12 Sep 2003 20:52:49 +0000 (20:52 +0000)]
Next version = 0.98.39
H. Peter Anvin [Fri, 12 Sep 2003 20:49:25 +0000 (20:49 +0000)]
Fix list iterator
H. Peter Anvin [Fri, 12 Sep 2003 17:06:52 +0000 (17:06 +0000)]
Document change to -g internals
H. Peter Anvin [Wed, 10 Sep 2003 23:34:23 +0000 (23:34 +0000)]
If we don't specify -g, actually suppress debugging output
H. Peter Anvin [Wed, 10 Sep 2003 23:33:38 +0000 (23:33 +0000)]
Use the version of tmap.nas that actually caused problems
H. Peter Anvin [Mon, 8 Sep 2003 22:59:45 +0000 (22:59 +0000)]
More test files...
H. Peter Anvin [Mon, 8 Sep 2003 22:59:07 +0000 (22:59 +0000)]
Cannot free "lnfname" since it's now static...
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.
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
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
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)
Frank Kotler [Sat, 6 Sep 2003 05:48:16 +0000 (05:48 +0000)]
nasm_malloc-ize Martin's outelf.c stabs stuff
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
-
H. Peter Anvin [Sat, 6 Sep 2003 00:55:49 +0000 (00:55 +0000)]
Document ELF fix
H. Peter Anvin [Sat, 6 Sep 2003 00:50:27 +0000 (00:50 +0000)]
First attempt at fixing the stabs/ELF issue.
H. Peter Anvin [Tue, 2 Sep 2003 21:39:22 +0000 (21:39 +0000)]
Document STR fix
H. Peter Anvin [Tue, 2 Sep 2003 21:38:48 +0000 (21:38 +0000)]
STR also has SMSW/SLDT-like semantics for operand size
H. Peter Anvin [Mon, 1 Sep 2003 04:20:40 +0000 (04:20 +0000)]
Add autoheader command
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.
H. Peter Anvin [Mon, 1 Sep 2003 04:14:15 +0000 (04:14 +0000)]
-O10 and -O15, not -O5 and -O10
H. Peter Anvin [Sat, 30 Aug 2003 05:04:22 +0000 (05:04 +0000)]
Now working toward 0.98.38
H. Peter Anvin [Sat, 30 Aug 2003 03:49:30 +0000 (03:49 +0000)]
Support building 16-bit DOS binaries using OpenWatcom
H. Peter Anvin [Fri, 29 Aug 2003 21:03:44 +0000 (21:03 +0000)]
Update for newer RH releases
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
H. Peter Anvin [Fri, 29 Aug 2003 20:00:26 +0000 (20:00 +0000)]
Fix "make doc"
H. Peter Anvin [Fri, 29 Aug 2003 19:58:02 +0000 (19:58 +0000)]
Don't rename the spec file
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
H. Peter Anvin [Fri, 29 Aug 2003 19:53:10 +0000 (19:53 +0000)]
Include spec file in tarball for rpm -ta
H. Peter Anvin [Fri, 29 Aug 2003 19:50:25 +0000 (19:50 +0000)]
Update URLs; make compatible with newer RPMs
H. Peter Anvin [Fri, 29 Aug 2003 19:37:58 +0000 (19:37 +0000)]
Standard formatting.
H. Peter Anvin [Fri, 29 Aug 2003 19:29:37 +0000 (19:29 +0000)]
Document -O2/-O3 change
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