summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* NASM 2.07rc2nasm-2.07rc2H. Peter Anvin2009-07-061-1/+1
|
* changes: add Mach-O alignment issue fixH. Peter Anvin2009-07-061-0/+2
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'master' of git+ssh://repo.or.cz/srv/git/nasmKeith Kanios2009-07-062-4/+11
|\
| * changes: document %+ behavior revertH. Peter Anvin2009-07-061-0/+3
| | | | | | | | | | | | | | Revert to original %+ behavior. This is what we really wanted in the first place, except this time we have fixed some bugs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * preproc: don't handle %+ until the final phase of smacro expansionH. Peter Anvin2009-07-061-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert to the earlier behavior of not expanding %+ until the final phase of smacro expansion. However, the previous code has: if (expanded && paste_tokens(&thead, true)) { ... which would inhibit paste_tokens() if expanded was false on the first iteration. However, if expand_mmac_params is not expanding %+, then we cannot bypass this expansion. Thus use: pasted = paste_tokens(&thead, true); if (expanded && pasted) { ... instead. This seems to work with both Syslinux and x264 usage, and therefore hopefully should be compatible with earlier versions of NASM. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | outmacho: fixed section/relocation alignment issueKeith Kanios2009-07-061-4/+4
|/
* NASM 2.07rc1nasm-2.07rc1H. Peter Anvin2009-07-061-1/+1
|
* changes.src: document user-visible changesH. Peter Anvin2009-07-061-0/+20
| | | | | | | | Update user-visible changes so far. Since I consider the license change alone to be big enough of a deal to justify a "real" version number, make this version 2.07. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: update license and contact informationH. Peter Anvin2009-07-061-26/+41
| | | | | | Update license information to 2-BSD; update contact information. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* spec: change License to BSDH. Peter Anvin2009-07-061-1/+1
| | | | | | | The appropriate License tag for the 2-clause BSD license is... wait for it... "BSD". Make it so. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* nasm.nsi: remove COPYING; add LICENSEH. Peter Anvin2009-07-061-2/+2
| | | | | | The licensing information has been moved into file LICENSE. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM: relicense under the 2-clause BSD licenseH. Peter Anvin2009-07-0636-916/+3
| | | | | | | | *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>
* outbin: minor cleanupsH. Peter Anvin2009-07-061-6/+8
| | | | | | | | | - add assert so we don't try to write 2^64 bytes of zero - explicitly track the Intel hex "LBA" (64K page) instead of playing games with the last byte written. This way it is more explicit what we're doing and why. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 2817225: don't overrun a permts buffer with a maximum labelH. Peter Anvin2009-07-051-3/+5
| | | | | | | | | | BR 677841 was fixed backwards, with a reverse condition. Correct the direction of the fix, and add an assert for the overflow condition. Note: the bug was non-manifest in previous build, so this is not a security issue. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* nasm.nsi: in the "NASM shell", put NASM first in PATHH. Peter Anvin2009-07-051-1/+1
| | | | | | | | | In the "NASM shell", it makes sense for NASM to be first in the PATH, not last. That way if the user has more than one version of NASM installed, and one of them is global, the "NASM shell" for any one version will still pick up the proper version. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Change noreturn macro to no_return to avoid header file problemsH. Peter Anvin2009-07-053-4/+4
| | | | | | | | Change the "noreturn" macro to "no_return", to avoid problems with system header files which use __attribute__((noreturn)) rather than __attribute__((__noreturn__)) as is appropriate for system headers. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* nasm.nsi: use LZMA compressionH. Peter Anvin2009-07-051-1/+1
| | | | | | | Using LZMA compression produces a significantly smaller installer binary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* More "make install" fixes...H. Peter Anvin2009-07-052-1/+2
|
* 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>
* nasm.nsi: add additional rdf2bin aliasesH. Peter Anvin2009-07-051-0/+4
| | | | | | Add additiona rdf2bin aliases to nasm.nsi 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>
* test/Makefile: add ith and srec targetsH. Peter Anvin2009-07-051-0/+6
| | | | | | Add ith and srec targets because, well, why not... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: S-records seems to usually be pluralizedH. Peter Anvin2009-07-051-3/+3
| | | | | | Call it "S-records" not "S-record". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: srec produces S-records, not Intel hex...H. Peter Anvin2009-07-051-1/+1
| | | | | | Copy and paste accident... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: use the term "extensions" to mean of-specific anythingH. Peter Anvin2009-07-051-2/+2
| | | | | | | We seem to use the term "extensions" to mean anything that is specific to an object format, so continue to do so. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: fix capitalizationH. Peter Anvin2009-07-051-1/+1
| | | | | | Consistently capitalize NASM. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outbin: when using saa_rnbytes() we have to saa_rewind()H. Peter Anvin2009-07-051-0/+2
| | | | | | | | Using saa_fpwrite() to dump a section to a file automatically does saa_rewind(), but if we use saa_rnbytes() to do bit by bit then we manually need to to saa_rewind() before we start. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outbin: when writing S-records, write head recordH. Peter Anvin2009-07-051-0/+3
| | | | | | | When writing S-record output, we should write the head record (S0), too. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outbin: add support for Intel hex and Motorola S-recordsH. Peter Anvin2009-07-053-29/+319
| | | | | | | 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>
* Make it possible for outputs to be either text or binaryH. Peter Anvin2009-07-0514-63/+66
| | | | | | | | | | | Allow the backend to specify that an output format is either text or binary. For future uses, define this as a flag word so we can define other flags in the future if it would make sense. Currently, the ieee and dbg formats are text; all the others are binary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* nasmlib.h: add unlikely() to nasm_assert()H. Peter Anvin2009-07-031-2/+5
| | | | | | | We explicitly want the compiler to pessimize the taken case of the assert, so unlikely() is appropriate here. 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>
* spec: update specfile with new rdf2bin aliasesH. Peter Anvin2009-07-031-0/+5
| | | | | | | Update the specfile to contain the new rdf2bin aliases and their man pages. 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>
* Add rdf2ith and rdf2srec to .gitignoreH. Peter Anvin2009-07-031-0/+2
|
* 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>
* Correction: preproc.c is *not* in the clear just yet.H. Peter Anvin2009-07-031-0/+12
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM 2.06.01rc1nasm-2.06.01rc1H. Peter Anvin2009-07-021-1/+1
|
* Beginnings of a crude utility to dump the contents of an OMF fileH. Peter Anvin2009-07-011-0/+223
| | | | | | | | | | | Beginnings of a crude utility to dump the contents of an OMF (obj) file. At this point all it does it breaks it down into the individual records and dumps those, but it is still easier to read than a pure hexdump. See http://www.azillionmonkeys.com/qed/Omfg.pdf for the format spec. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix early report_error(); avoid nuisance phase warningsH. Peter Anvin2009-07-011-14/+19
| | | | | | | | | | | Fix report_error() to (hopefully) not fault if used without ERR_NOFILE if no filename is available. Avoid nuisance phase error between passes warnings if we have detected other errors. In those case, the phase error is almost certainly spurious. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outobj: handle the case of SEG <undefined> in pass 0H. Peter Anvin2009-07-011-4/+12
| | | | | | | | SEG <undefined> can happen, validly, for a common symbol during the optimization passes. It better not happen during the real passes, however! Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* nasmlib: add nasm_assert(); use const char * for filenamesH. Peter Anvin2009-07-012-14/+28
| | | | | | | Add new nasm_assert() function, and add "const" to the declarations which take filenames, as well as to the nasm_strdup/strndup functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* compiler.h: new macro for a non-returning functionH. Peter Anvin2009-07-011-0/+9
| | | | | | Add a new macro for a non-returning function. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outmacho: change license to 2-BSDH. Peter Anvin2009-06-301-12/+0
| | | | | | | Received authorization from Apple to change the license of outmacho.c to the 2-clause BSD license. Thanks! Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ELF64: fix incorrect type for the .strtab section headerCyrill Gorcunov2009-06-301-1/+1
| | | | | | | The .strtab section is SHT_STRTAB, not SHT_SYMTAB. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM 2.06nasm-2.06H. Peter Anvin2009-06-291-1/+1
|