H. Peter Anvin
1a4440ac58
When compiling with gcc, compile with -W -Wall for maximum warnings.
2007-04-13 19:59:20 +00:00
H. Peter Anvin
c1494ac5ab
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.
2007-04-13 19:58:42 +00:00
Keith Kanios
a6dfa78b78
Fixed distinction between char and int8_t data types.
2007-04-13 16:47:53 +00:00
Keith Kanios
2cc61b34f0
Comment "REX.I" should have been "REX.X"
2007-04-13 01:17:45 +00:00
Keith Kanios
c1c5a2d96f
Fixed c99 data-types after removal of typedefs.
2007-04-13 00:52:54 +00:00
Keith Kanios
ea13537d83
Added Dev-Cpp Makefile
2007-04-13 00:43:50 +00:00
Keith Kanios
94a4d99cf0
*** empty log message ***
2007-04-13 00:38:29 +00:00
H. Peter Anvin
adb9d55678
Remove redundant inclusion of <inttypes.h>
...
"hash.h" includes <inttypes.h>, no need to do it again.
2007-04-12 17:58:02 +00:00
H. Peter Anvin
038d861ede
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.
2007-04-12 16:54:50 +00:00
H. Peter Anvin
2030bd21f4
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.
2007-04-12 16:25:58 +00:00
Keith Kanios
82e15cd5b3
Fixed c99 support for RDOFF Tools
2007-04-12 16:23:11 +00:00
H. Peter Anvin
58421f9697
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.
2007-04-12 16:12:09 +00:00
Keith Kanios
b7a89544d0
General push for x86-64 support, dubbed 0.99.00.
2007-04-12 02:40:54 +00:00
Eric Christopher
aa348dec7d
Add VMX instructions.
2006-03-02 18:35:09 +00:00
Eric Christopher
1e0de6e913
Fix documentation building for non-srcdir builds. Still bugs in .ps implementation.
...
Add Mach-O documentation.
2006-02-04 00:23:30 +00:00
Eric Christopher
a5f0000db0
2006-02-02 Eric Christopher <echristo@apple.com>
...
Wade Tregaskis <wtregaskis@apple.com>
* output/outmacho.c (macho_cleanup): Depend on symbols
existing.
2006-02-02 21:50:47 +00:00
Eric Christopher
5eb2d2b094
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.
2005-12-09 00:27:26 +00:00
Eric Christopher
5547e191fe
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.
2005-12-05 23:17:17 +00:00
Eric Christopher
8e5abdeeb9
Allow CFLAGS to be overridden from make.
2005-10-20 19:46:34 +00:00
Eric Christopher
a485fbdd37
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.
2005-10-07 22:30:56 +00:00
Eric Christopher
d3179b6ce0
Break macho_cleanup into separate functions.
2005-09-26 22:13:42 +00:00
Eric Christopher
5508a4c7fc
Run misc/Nindent on outmacho.c
2005-09-22 21:41:17 +00:00
Eric Christopher
1b8a72ae7c
Add basic support for Mach-O file format.
2005-09-22 21:22:33 +00:00
Frank Kotler
f3071da71e
fix outobj.c bug - every 256th extern crashed nasm
...
-
2005-06-08 16:41:10 +00:00
Frank Kotler
02f05cebba
Jindrich Novy's buffer overrun patch to outieee.c
...
-
2005-05-09 16:34:43 +00:00
Frank Kotler
9d8c22b202
add John Coffman's optimizer documentation
2005-03-10 02:03:11 +00:00
Frank Kotler
aa6c4b21b2
Update "version" to 0.98.40
2005-02-04 22:17:49 +00:00
Frank Kotler
8f1993b6d6
update my address in AUTHORS
2005-01-17 05:30:47 +00:00
H. Peter Anvin
e2c80181b6
Apply Nindent to all .c and .h files
2005-01-15 22:15:51 +00:00
H. Peter Anvin
5180bc8a59
Update dependencies
2005-01-14 23:05:31 +00:00
H. Peter Anvin
54d9da5efe
Fix comment
2005-01-14 23:03:42 +00:00
H. Peter Anvin
dbcf0089d6
Update to match SF changes
2005-01-14 22:57:03 +00:00
H. Peter Anvin
9d5a64f00f
Consistent capitalization
2005-01-14 22:56:01 +00:00
Frank Kotler
fd493aefe6
update "CHANGES"
2005-01-13 02:52:55 +00:00
H. Peter Anvin
25018e29e7
Dummy change to test CVS mail
2005-01-01 22:54:25 +00:00
Frank Kotler
c0e34d4f81
Document maximum identifier length
2004-12-31 03:38:32 +00:00
H. Peter Anvin
07d455120f
Script to format the source code in a standard format
2004-12-29 23:53:40 +00:00
H. Peter Anvin
aa19cc2372
Add ieee_ prefix to filenames with otherwise highly ambiguous names;
...
esp round() which is a standard C function.
2004-12-29 00:41:28 +00:00
Frank Kotler
c650b87792
Andreas Ericsson's patch to misc/nasm.sl
...
-
2004-12-21 18:06:22 +00:00
Ed Beroset
94d7fb01a6
Added "splint" as a target to simplify running splint on all sources.
2004-12-17 01:06:10 +00:00
Ed Beroset
184cef59d6
Placed guards around strdup declaration to avoid compiler errors on sane
...
systems.
2004-12-17 00:55:19 +00:00
Ed Beroset
64ab51965a
Added todo item to point out the somewhat tricky fact about snprintf's
...
return value.
2004-12-15 23:32:57 +00:00
Ed Beroset
a5d2945b7b
added checks for vsnprintf and snprintf (ISO C99) and changed gcc
...
compile flag from -ansi to -std=c99
2004-12-15 23:02:20 +00:00
Ed Beroset
258fcafe88
Corrected typo in variable name.
2004-12-15 23:00:13 +00:00
Ed Beroset
3ef4e4da04
changed last sprintf to more secure snprintf to prevent vulnerability to buffer
...
overflow exploits.
2004-12-15 18:30:54 +00:00
Ed Beroset
9234817aa4
changed sprintf to more secure snprintf to prevent vulnerability to buffer
...
overflow exploits.
2004-12-15 18:27:50 +00:00
Ed Beroset
602f1df356
added buffer length parameter to prevent vulnerability to buffer
...
overflow exploits.
2004-12-15 18:27:21 +00:00
Ed Beroset
b30ff1f284
added buffer length parameters to prevent vulnerability to buffer
...
overflow exploits.
2004-12-15 18:26:37 +00:00
Ed Beroset
fcc50aec8a
changed sprintf to more secure snprintf to prevent vulnerability to buffer
...
overflow exploits.
2004-12-15 18:03:20 +00:00
Ed Beroset
83b2809a03
changed sprintf to more secure snprintf to prevent vulnerability to buffer
...
overflow exploits.
2004-12-15 17:10:25 +00:00