aboutsummaryrefslogtreecommitdiffstats
path: root/rdoff/rdoff.c
Commit message (Collapse)AuthorAgeFilesLines
* error: replace nasm_verror() indirection with preproc callbackH. Peter Anvin2019-08-281-8/+9
| | | | | | | | | | Since pp_error_list_macros() was introduced, the only need for pp_verror() is to suppress error messages in certain contexts. Replace this function with a preprocessor callback, preproc->pp_suppress_error(), so we can drop the nasm_verror() function pointer entirely. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* errors: be more robust in handling unexpected fatal errorsH. Peter Anvin2019-08-281-2/+8
| | | | | | | | | | | | | Introduce a new error level, ERR_CRITICAL, beyond which we will minimize the amount of code that will be executed before we die; in particular don't execute any memory allocations, and if we somehow end up recursing, abort() immediately. Basically, "less than panic, more than fatal." At this point this level is used by nasm_alloc_failed(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Move <string.h> inclusion to compiler.hH. Peter Anvin2018-12-261-1/+0
| | | | | | | There is absolutely no reason not to include <string.h> globally, and with the inline function for mempcpy() we need it there anyway. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* errors: change the severity parameter from "int" to "errflags"H. Peter Anvin (Intel)2018-12-131-1/+1
| | | | | | | Change the severity parameter to the error function from "int" to an unsigned typedef, currently uint32_t. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* rdoff.c: one more unsafe use of fread()H. Peter Anvin2017-04-171-1/+5
| | | | | | Use the same error pattern as the rest of the calls in this function. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* rdoff: use nasm-provided safe memory allocation and I/OH. Peter Anvin2017-04-171-22/+29
| | | | | | | | | We already have abort-on-error memory allocation and I/O operations in nasmlib, so use them for rdoff as well. Delete long-since-obsolete rdoff Mkfiles directory. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge branch 'nasm-2.12.xx'Cyrill Gorcunov2016-07-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * nasm-2.12.xx: codeview: Fix ill-formed "S_COMPILE2" record. rdoff: Add rdf2bin input dependency labels: Warn if new label created on pass two Add explicit void parameter to newmembuf() function declaration. compiler.h: always undefine __STRICT_ANSI__ for gcc | Conflicts: | rdoff/Makefile.in Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * Add explicit void parameter to newmembuf() function declaration.bcallah@devio.us2016-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | In rdoff/rdoff.c, the function declaration for newmembuf is written: static memorybuf *newmembuf() The attached diff adds an explicit void parameter. It seems like it would be nicer with an explicit void parameter especially since the -Werror build options seem to want to find such things. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | lib: split library into stdlib and nasmlib; header handling fixesH. Peter Anvin2016-03-081-1/+0
|/ | | | | | | | | | | | | Split lib/ into nasmlib/ (for nasm-specific functions) and stdlib/ (for replacements for C library functions which may be missing.) Rename the ersatz inttypes.h to nasmint.h so we can use a simple test in compiler.h instead of dealing with include path magic. Remove tests in configure.in for ancient missing functions (which will break the build anyway.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Add missing static declarations in rdoff/rdoff.cH. Peter Anvin2014-11-251-6/+6
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Add new copyright headers to the rdoff codeH. Peter Anvin2009-06-281-8/+33
| | | | | | | | 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>
* regularized spelling of license to match name of LICENSE fileBeroset2007-12-291-1/+1
|
* BR 1834056: Remove warnings in rdoff/rdoff.cH. Peter Anvin2007-11-181-6/+6
| | | | Remove warnings, especially the alias warnings in rdoff/rdoff.c.
* Formatting: kill off "stealth whitespace"H. Peter Anvin2007-10-191-3/+3
| | | | | "Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
* Portability fixesH. Peter Anvin2007-10-021-0/+2
| | | | | | | | | 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.)
* c99 printf/fprintf compliance.Keith Kanios2007-04-141-2/+2
|
* Fixed distinction between char and int8_t data types.Keith Kanios2007-04-131-8/+8
|
* Remove obsolete types; add <inttypes.h> where needed; header fixesH. Peter Anvin2007-04-121-8/+8
| | | | | | | | | | | - 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-121-0/+1
|
* General push for x86-64 support, dubbed 0.99.00.Keith Kanios2007-04-121-32/+32
|
* Apply Nindent to all .c and .h filesnasm-0.98.39LATESTH. Peter Anvin2005-01-151-255/+262
|
* outrdf2.c now uses the same definitions of RDOFF2 format that RDOFF utils.Yuri Zaporogets2004-09-151-206/+249
| | | | | | | | 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.
* Update rdoffFrank Kotler2003-12-121-0/+2
|
* Yuri's 12/3/2002 rdoff patches-Frank Kotler2002-12-041-24/+26
|
* RDOFF patch from Yuri Zaporogets:H. Peter Anvin2002-05-041-1/+1
| | | | | | | | | | - Panos Minos's LDRDF fix (correct export of relocation records); - Panos Minos's symtab.c verbose dump fix; - Librarian (rdflib) now puts a signature block when creating a library (instead of creating an empty file). In theory it doesn't break binary compatibility, but due to a bug in the original 'rdlib.c' you can't use old LDRDF with new libraries. Fix this bug as well. - Other minor changes in LDRDF.
* NASM 0.98.22nasm-0.98.22H. Peter Anvin2002-04-301-4/+2
|
* NASM 0.98.08nasm-0.98.08H. Peter Anvin2002-04-301-3/+23
|
* NASM 0.98nasm-0.98fork-0.98bfH. Peter Anvin2002-04-301-121/+235
|
* NASM 0.94nasm-0.94H. Peter Anvin2002-04-301-11/+41
|
* NASM 0.91nasm-0.91H. Peter Anvin2002-04-301-0/+367