summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* BR 2826669: update licensing information in READMEnasm-2.07.xxH. Peter Anvin2009-07-261-3/+4
| | | | | | The code is now under the 2-clause BSD license. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 2827397: fix invalid C in outcoff AddExports()H. Peter Anvin2009-07-261-6/+6
| | | | | | | | | | | | | | | | | | The construct: if (i == nsects) directive_sec = sects[coff_make_section (EXPORT_SECTION_NAME, EXPORT_SECTION_FLAGS)]; ... where coff_make_section() can change the global variable "sects" is undefined C, since there is no sequence point involved in the [] operator, and it is therefore fully permitted for the C compiler to read the sects variable first. Change this construct into two statements to enforce defined behavior; this also ends up with the code slightly simpler. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM 2.07nasm-2.07H. Peter Anvin2009-07-191-1/+1
|
* NASM 2.07rc7nasm-2.07rc7H. Peter Anvin2009-07-171-1/+1
|
* outcoff: fix invalid reference to ofmtH. Peter Anvin2009-07-161-1/+1
| | | | | | ofmt is a static in nasm.c (why?), not a global... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* test/Makefile: add more output rulesH. Peter Anvin2009-07-161-2/+15
| | | | | | Add more output rules to be able to try things quickly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outcoff: this is COFF, not binaryH. Peter Anvin2009-07-161-2/+2
| | | | | | Fix error message in outcoff to say COFF, not binary format... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 2822263: don't re-invoke ofmt->symdef() in pass2 unless "special"H. Peter Anvin2009-07-161-1/+2
| | | | | | | | | | | | | Before checkin aeb0e0e9f1e7e9b32a8f17f2259311f6e9207aa6 we would only invoke ofmt->symdef() for a common variable during pass 2 if that variable had "special" in the declaration. That checkin unintentionally changed that behavior. That doesn't mean that the pre-existing behavior is right, but this should at least fix the resulting regressions. This really warrants more investigation. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outform.h: update comments regarding macho32/macho64Keith Kanios2009-07-161-4/+4
|
* changes: it's not just invalid UTF-8 sequences that are affected...H. Peter Anvin2009-07-151-2/+2
| | | | | | | | It isn't just invalid UTF-8 sequences that are affected; it is in fact any high-bit bytes (we don't ever try to construct UTF-8 characters, just deconstruct them.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM 2.07rc6nasm-2.07rc6H. Peter Anvin2009-07-151-1/+1
|
* changes: document fixed crash on invalid UTF-8 sequencesH. Peter Anvin2009-07-151-0/+3
| | | | | | Document nasm_quote() fixes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* quote: use nasm_assert() instead of plain assert()H. Peter Anvin2009-07-151-2/+1
| | | | | | We have nasm_assert() now, so use it... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* quote: we must do unsigned comparison to get length of octal escapeH. Peter Anvin2009-07-151-11/+12
| | | | | | | | | When computing the length of an octal escape, we need to do an unsigned compare, otherwise we only allocate space for one character for bytes in the \200..\377 range, which is obviously incorrect. Reported-by: Ed Beroset <beroset@mindspring.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* quote: don't use sprintf()H. Peter Anvin2009-07-151-7/+17
| | | | | | | | | | There is no point in using sprintf(), and it adds the possibility of either bugs due to the output not matching what the byte count loop is expecting, or just cause people to freak out due to the notion that "sprinf is unsafe". Reported-by: Ed Beroset <beroset@mindspring.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: use consistent title caseH. Peter Anvin2009-07-151-4/+4
| | | | | | Section titles are in title case and don't end with a period. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: fix formatting of the bin multisection headerH. Peter Anvin2009-07-151-1/+1
| | | | | | "Multisection" is not a keyword... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM 2.07rc5nasm-2.07rc5H. Peter Anvin2009-07-151-1/+1
|
* gitignore: add test results, *.dbgH. Peter Anvin2009-07-131-0/+3
| | | | | | Add test result directories and *.dbg to gitignore. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ELF: add debug support for TY_YWORDH. Peter Anvin2009-07-132-0/+8
| | | | | | Add debug support for TY_YWORD (256 bits/32 bytes). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* elf32: debug32_typevalue - fix TY_OWORD sizeCyrill Gorcunov2009-07-131-1/+1
| | | | | | | TY_OWORD is 8 * TY_WORD = 16 bytes length Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM 2.07rc4nasm-2.07rc4H. Peter Anvin2009-07-081-1/+1
|
* Document macho64 output formatH. Peter Anvin2009-07-082-11/+22
| | | | | | At least mention the 64-bit macho format in the documentation. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Revert "NASM 2.07rc4"Keith Kanios2009-07-081-1/+1
| | | | This reverts commit 6d67ced3a470202b511dd55d8d5ac0566ac24fd6.
* NASM 2.07rc4Keith Kanios2009-07-081-1/+1
|
* macho64: Manually merge macho64 branch with master branch.Keith Kanios2009-07-085-25/+1594
|
* outmacho.c: fix section/relocation alignment issueKeith Kanios2009-07-071-3/+7
|
* NASM 2.07rc3nasm-2.07rc3H. Peter Anvin2009-07-071-1/+1
|
* changes: document listing fixH. Peter Anvin2009-07-071-0/+3
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* preproc: revert to older form of preprocessor user error messagesH. Peter Anvin2009-07-071-5/+5
| | | | | | | | | When the user generates an error via %warning, %error, or %fatal, treat is as any other error message. The attempt at making them stand out really looked ugly when the preprocessor adds additional tracing information. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* preproc: always reprocess smacros after %+ - pastingH. Peter Anvin2009-07-071-4/+5
| | | | | | | | We always need to process %+ at least once, but we also always need to reprocess smacros after pasting. The solution to this is to make sure we always reprocess %+ after the first expansion pass. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* listing: preserve list file on error, include errorsH. Peter Anvin2009-07-073-13/+57
| | | | | | | | | Instead of removing the list file on error, keep the list file and include the errors in the list file. This makes it actually possible to debug things that involve deep macro recursion, where the line number is pretty much meaningless. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outdbg: be excrutiatingly correct...H. Peter Anvin2009-07-071-1/+1
| | | | | | | outdbg is actually a good starting point to make a new backend, so we really should endeavor to make it do things "right". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outdbg: fix OUT_REL*ADR, add OUT_REL8ADRH. Peter Anvin2009-07-071-3/+8
| | | | | | | | | | The OUT_REL*ADR types pass a pointer which points to an int64_t which then should be truncated down to size. This matters on bigendian platforms. Add OUT_REL8ADR. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outbin: be consistent in spelling "Intel hex" with those capsH. Peter Anvin2009-07-061-1/+1
| | | | | | | | The documentation uses "Intel hex", with that capitalization (Intel being a proper noun, hex being descriptive) so make the help message match. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* 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>