summaryrefslogtreecommitdiff
path: root/output/outform.h
Commit message (Collapse)AuthorAgeFilesLines
* Clean up backend format namesH. Peter Anvin2019-08-101-16/+4
| | | | | | | The backend format names were rather redundant and not always helpful. Do some cleanup. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Additional listing options, improve help output, fix macro limitsH. Peter Anvin2019-08-101-1/+1
| | | | | | | | | | | | | | | | | | Additional listing options: -Ld to display counts in decimal -Lp to output a list file in every pass (to make sure one exists) Clean up the help output and make it comprehensive. The -hf and -y options are no longer necessary, although they are supported for backwards compatiblity. Fix macro-levels so it actually count descent levels; a new macro-tokens limit introduced for the actual token limit. Slightly simplify the limits code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge remote-tracking branch 'origin/nasm-2.12.xx'H. Peter Anvin2016-03-081-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: output/codeview.c output/outelf32.c output/outelf64.c output/outelfx32.c output/outform.c output/outform.h output/outieee.c output/outobj.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Defer debug format search until after command line parsingH. Peter Anvin2016-03-071-1/+1
| | | | | | | | | | | | | | | | Avoid funnies with ordering of debug format selection by deferring debug format search until after command line processing. Also permit the -gformat syntax used by many C compilers. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Get rid of a bunch of unnecessary indirectionsH. Peter Anvin2016-03-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We pass around a whole bunch of function pointers in arguments, which then just get stashed in static variables. Clean this mess up and in particular handle the error management in the preprocessor using nasm_set_verror() which already exists. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> From master branch checkin 130736c0cfcad28ee16cec6c14bb22999d982e5a Resolved Conflicts: nasm.c preproc-nop.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | More constification, mostly of struct dfmtH. Peter Anvin2016-02-181-3/+3
| | | | | | | | | | | | | | Make struct dfmt and the struct dfmt arrays const across the board, and make them static whereever possible. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | output: make all instances of struct ofmt readonlyH. Peter Anvin2016-02-171-24/+24
| | | | | | | | | | | | | | With current_dfmt gone, we can make all instances of struct ofmt const (read-only). Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | Get rid of a bunch of unnecessary indirectionsH. Peter Anvin2016-02-171-1/+0
|/ | | | | | | | | We pass around a whole bunch of function pointers in arguments, which then just get stashed in static variables. Clean this mess up and in particular handle the error management in the preprocessor using nasm_set_verror() which already exists. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* backend: add support for x32 ELFH.J. Lu2012-02-031-0/+13
| | | | Add an x32 ELF (32-bit code with the CPU in 64-bit mode) backend.
* ofmt: Alias shortname must be used for __OUTPUT_FORMAT__ macroCyrill Gorcunov2011-04-061-7/+3
| | | | | | | | | | | | __OUTPUT_FORMAT__ must consist of shortname of output format or its alias, otherwise userspace ABI gets broken. For example source code still can refer to __OUTPUT_FORMAT__=elf, instead of __OUTPUT_FORMAT__=elf32. BR3246990 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Add "win" alias for "win32" output formatCyrill Gorcunov2010-04-211-0/+7
| | | | | | | | We already have "elf" and "macho" aliases for respective 32 bit output formats. Make the same for "win32" in a sake of consistency. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* ofmt: Introduce output format aliasesCyrill Gorcunov2010-04-101-11/+31
| | | | | | | | This allow us to keep compatibility layer without needing the separated struct ofmt for this and elf_init_hack routine. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* outform.h: fix OF_NO_RDF2H. Peter Anvin2009-11-301-1/+1
| | | | | | OF_NO_RDF2 should turn off OF_RDF2, not OF_RDF Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Remove function pointers in output, simplify error handlingH. Peter Anvin2009-07-181-6/+6
| | | | | | | | | | | | | | | Remove a bunch of function pointers in the output stage; they are never changed and don't add any value. Also make "ofile" a global variable and let the backend use it directly. All we ever did with these variables were stashing it in locals and using them as-is anyway for no benefit. Also change the global error function, nasm_error() into a true function which invokes a function pointer internally. That lets us use direct calls to it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outform.h: update comments regarding macho32/macho64Keith Kanios2009-07-161-4/+4
|
* macho64: Manually merge macho64 branch with master branch.Keith Kanios2009-07-081-8/+23
|
* outbin: add support for Intel hex and Motorola S-recordsH. Peter Anvin2009-07-051-0/+4
| | | | | | | Add support for directly generating Intel hex or Motorola S-records. These formats are commonly used with ROM burners. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Add new copyright headers to the output modulesH. Peter Anvin2009-06-281-6/+35
| | | | | | | | Add new copyright headers to the new output modules. As far as I know, the only module which we still don't have a green light to release under 2-BSD is outmacho. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Move prototypes for null_debug to outform.h and outlib.hH. Peter Anvin2009-06-271-0/+1
| | | | | | | | Move the prototypes for the null debugging format to outform.h (for the top-level structure declaration only) and outlib.h (for the internal routines.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Move backend-specific code to output/; break out null debug stuffH. Peter Anvin2009-06-271-0/+295
Move backend-specific code into the output/ directory, and make the null debugging backend a separate file (it certainly isn't needed for ndisasm...) Signed-off-by: H. Peter Anvin <hpa@zytor.com>