summaryrefslogtreecommitdiff
path: root/rdoff
Commit message (Collapse)AuthorAgeFilesLines
* Use fputs instead of fprintf for plain stringsVictor van den Elzen2009-08-131-1/+1
| | | | LLVM's Clang warns about this. outieee.c had a real problem.
* NASM: relicense under the 2-clause BSD licenseH. Peter Anvin2009-07-061-4/+1
| | | | | | | | *To the best of my knowledge*, we now have authorization from everyone who has significantly contributed to NASM in the past. As such, change the license to the 2-clause BSD license. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* More "make install" fixes...H. Peter Anvin2009-07-051-1/+1
|
* rdf2bin: be smarter about extracting the format from argv[0]H. Peter Anvin2009-07-051-7/+26
| | | | | | | | Consider that argv[0] may contain extensions like .exe as well as pathname prefixes. Handle it by searching backwards for the string "rdf2" and then extract the alphanumeric tail that follows. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rdoff: fix "make install"H. Peter Anvin2009-07-051-1/+3
| | | | | | Fix "make install" for the new rdf2bin aliases. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rdf2bin.1: add missing spaceH. Peter Anvin2009-07-031-1/+1
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rdoff/test/Makefile: actually do build testsH. Peter Anvin2009-07-031-1/+9
| | | | | | Add actual Makefile rules for the rdoff tests. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rdf2bin: update man page, add link pages for aliasesH. Peter Anvin2009-07-034-6/+43
| | | | | | | Update the rdf2bin man page; add link man pages for the various command aliases. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Correct the legacy name rdf2ihx (as opposed to rdf2ith)H. Peter Anvin2009-07-031-1/+1
| | | | | | | | The more common acronym for Intel Hex seems to be "ith", but the legacy utility was "rdf2ihx", so we allow both variants. However, the Makefile rule was wrong. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rdf2bin: revamp so it can output bin, ith, or srecH. Peter Anvin2009-07-032-67/+313
| | | | | | | Revamp rdf2bin so it can output binary, Intel hex, or Motorola S-records. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rdfload: make the base addresses unsignedH. Peter Anvin2009-07-031-3/+3
| | | | | | | | Make the base addresses in rdfload unsigned. Note: this file is really obsolete; it can't represent RDF2 with more than the 3 old-style segments. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Remove rdf2ihx.c, since it looks unlikely we'll get it relicensed.H. Peter Anvin2009-07-031-237/+0
| | | | | | | | Remove rdf2ihx.c since I think it's unlikely we'll ever get it relicensed -- any attempts at contacting the author has failed, and it's easier to reconstruct it from scratch. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Add new copyright headers to the rdoff codeH. Peter Anvin2009-06-2817-55/+579
| | | | | | | | To the best of my knowledge, the only file which we don't have 2-BSD relicensing permission for at this stage is rdf2ihx.c. That file probably should just be rewritten, if anyone cares. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify all-zero buffers; add fwritezero()H. Peter Anvin2009-02-211-1/+2
| | | | | | | | We have a number of all-zero buffers in the code. Put a single all-zero buffer in nasmlib.c. Additionally, add fwritezero() which can be used to write an arbitrary number of all-zero bytes; this prevents the situation where the all-zero buffer is simply too small.
* rdx: Add cast avoid warning from gccH. Peter Anvin2008-05-201-1/+1
| | | | | Avoid a warning from gcc about casting an integer of different size to a pointer.
* Avoid some warnings in rdoff/rdf2bin.cBo Borgerson2008-04-121-3/+3
| | | | | | | | | | | | | | | | | | | | I received some warnings when running make on the head revision of nasm from git: ---- rdf2bin.c: In function 'main': rdf2bin.c:122: warning: comparison between signed and unsigned rdf2bin.c:123: warning: comparison between signed and unsigned rdf2bin.c:124: warning: comparison between signed and unsigned ---- I think these warnings are innocuous and should be safely avoidable with simple casts (please see attached patch). * rdoff/rdf2bin.c (main): cast to size_t for comparison with fwrite return value Signed-off-by: Bo Borgerson <gigabo@gmail.com>
* Define MKDIR for rdoff make fileCharles Crayne2007-12-301-0/+1
| | | | Addition of rdoff man pages uses MKDIR, which was not defined
* regularized spelling of license to match name of LICENSE fileBeroset2007-12-2914-14/+14
|
* rdoff: add man pages from the Debian project.H. Peter Anvin2007-12-187-0/+160
| | | | Add man pages for some of the rdoff programs, from the Debian project.
* Clean up remaining build warningsH. Peter Anvin2007-11-181-1/+3
| | | | | | Clean up remaining build warnings. None of this should affect code operations. The only warnings which were actually relevant might have been the ones in ldrdf.c, but it's not clear if anyone ever uses that.
* BR 1834056: Remove warnings in rdoff/rdoff.cH. Peter Anvin2007-11-181-6/+6
| | | | Remove warnings, especially the alias warnings in rdoff/rdoff.c.
* Actually shut up the warning in rdfload.cH. Peter Anvin2007-10-281-3/+3
| | | | Shut the warning in rdfload.c up properly...
* Fix warning about cast to pointer in rdfload.cH. Peter Anvin2007-10-281-3/+3
| | | | | | Fix warning in rdfload.c about cast to pointer of different size when compiling on 64 bits. Of course, rdfload is probably useless on 64 bits, but it's pretty useless in the first place.
* Formatting: kill off "stealth whitespace"H. Peter Anvin2007-10-197-15/+15
| | | | | "Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
* Suppress datarootdir warnings from configureCharles Crayne2007-10-181-0/+1
|
* Fix invocation of readnum()H. Peter Anvin2007-10-182-12/+12
| | | | readnum() takes a boolean for error.
* Use the compiler-provided booleans if available, otherwise emulateH. Peter Anvin2007-10-101-39/+36
| | | | | | | Both C and C++ have "bool", "true" and "false" in lower case; C requires <stdbool.h> for this, in C++ it is an inherent type built into the compiler. Use those instead of the old macros; emulate with a simple typedef enum if unavailable.
* Portability fixesH. Peter Anvin2007-10-0214-1/+29
| | | | | | | | | Concentrate compiler dependencies to compiler.h; make sure compiler.h is included first in every .c file (since some prototypes may depend on the presence of feature request macros.) Actually use the conditional inclusion of various functions (totally broken in previous releases.)
* Remove $Id$ tags (useless with git)H. Peter Anvin2007-09-121-1/+0
| | | | Remove CVS $Id$ tags, since git doesn't use them.
* remove "#include <unistd.h> from rdoff directory - two places - it annoyed ↵Frank Kotler2007-08-262-2/+0
| | | | Windows users and seems unneeded
* ldrdf: cast output of sizeof() before passing to printf(), to avoid warning.H. Peter Anvin2007-08-201-2/+3
| | | | | The C99 way of doing this would be to use %zu, but that requires intrinsic C library support.
* Get rid of @GCCFLAGS@H. Peter Anvin2007-04-151-1/+1
| | | | Get rid of the now-obsolete @GCCFLAGS@.
* c99 printf/fprintf compliance.Keith Kanios2007-04-148-32/+37
|
* AIf we have config.h, we should actually include it!!H. Peter Anvin2007-04-131-0/+1
| | | | | | | | | | Apparently configure was generating config.h, and nothing ever actually included it. Include it in nasm.h as well as compiler.h, and in rdoff/rdlar.h which uses these macros. There appears to be no use of HAVE_* macros in any file that doesn't have nasm.h included; in fact, so far the only use has been in rdoff/rdlar.h.
* Fixed distinction between char and int8_t data types.Keith Kanios2007-04-1315-92/+92
|
* Remove redundant inclusion of <inttypes.h>H. Peter Anvin2007-04-121-2/+0
| | | | "hash.h" includes <inttypes.h>, no need to do it again.
* Remove obsolete types; add <inttypes.h> where needed; header fixesH. Peter Anvin2007-04-1219-97/+125
| | | | | | | | | | | - 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.
* Fixed c99 support for RDOFF ToolsKeith Kanios2007-04-125-4/+8
|
* General push for x86-64 support, dubbed 0.99.00.Keith Kanios2007-04-1222-258/+258
|
* Allow CFLAGS to be overridden from make.Eric Christopher2005-10-201-2/+5
|
* Apply Nindent to all .c and .h filesnasm-0.98.39LATESTH. Peter Anvin2005-01-1523-2825/+2840
|
* Placed guards around strdup declaration to avoid compiler errors on saneEd Beroset2004-12-171-0/+2
| | | | systems.
* outrdf2.c now uses the same definitions of RDOFF2 format that RDOFF utils.Yuri Zaporogets2004-09-1521-652/+704
| | | | | | | | 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.
* Removed old header that was once used by ldrdf.Yuri Zaporogets2004-08-081-27/+0
|
* Include <string.h> to get rid of compiler warningsYuri Zaporogets2004-05-151-1/+2
|
* Fix of the critical bug in ldrdf.cYuri Zaporogets2004-05-151-2/+2
|
* Update rdoffFrank Kotler2003-12-127-233/+226
|
* Remove "malloc.h" from rdoff/symtab.c - BSD build problem?Frank Kotler2003-04-011-1/+0
|
* Add missing header filesH. Peter Anvin2002-12-052-0/+2
|
* try again to finish Yuri's patchFrank Kotler2002-12-043-0/+491
|