summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* outmacho64.c: Add PC-Relative GOT support and perform general code cleanup.macho64Keith Kanios2009-07-081-28/+33
|
* Push files missed during last commit.Keith Kanios2009-07-0759-0/+7354
|
* Add outmacho64.c and related files back after updating macho64 branch to ↵Keith Kanios2009-07-071-7/+10
| | | | latest master/2.07 source
* Push to synchronize macho64 branch with latest master/2.07 sourceKeith Kanios2009-07-07186-15121/+8608
|
* outmacho64.c: mass updateKeith Kanios2009-07-061-87/+177
| | | | | | -Update original 2.04/outmacho.c based implementation to be consistent with latest changes in 2.06/outmacho.c -Add support to find nearest symbol for use with calculating symtab-based (external) relocations/fixups
* modified: output/outmacho64.cKeith2008-10-091-29/+77
|
* output: combine macros for the most generic output formatsH. Peter Anvin2008-09-097-19/+11
| | | | | | | | | | | | Several output formats have a macro package that looks like: %define __SECT__ [section .text] %macro __NASM_CDecl__ 1 %endmacro Combine them all into a single macro package (generic.mac). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'master' into macho64H. Peter Anvin2008-09-097-13/+26
|\
| * Run "make alldeps"H. Peter Anvin2008-09-095-6/+10
| |
| * macros.pl: don't include macros for disabled output formatsH. Peter Anvin2008-09-091-4/+13
| | | | | | | | | | | | Don't include macros for output formats we aren't compiling in. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * outaout.mac: aoutb is an alias for aoutH. Peter Anvin2008-09-091-1/+1
| | | | | | | | | | | | | | aoutb is an alias format for aout (in the sense they use the same macro set.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * macros.pl: be a bit more careful with open()H. Peter Anvin2008-09-091-2/+2
| | | | | | | | | | | | Be a bit more strict with open() calls. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | outmacho.mac: add final newlineH. Peter Anvin2008-09-091-1/+1
| | | | | | | | | | | | Add final newline to end of outmacho.mac Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into macho64H. Peter Anvin2008-09-092-2/+2
|\ \ | |/ | | | | | | Conflicts: output/outmacho.mac
| * macros: win32 and win64 are COFF, not Mach-OH. Peter Anvin2008-09-092-2/+2
| | | | | | | | | | | | | | | | Somehow the win32 and win64 aliases got listed on Mach-O, not on COFF. This doesn't have any effect on the current code, but might in the future. Correct. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Makefiles: fix accidental revert of Makefile.in; run "make alldeps"H. Peter Anvin2008-09-085-20/+24
| | | | | | | | | | | | | | - Fix accidental revert to an older version of Makefile.in. - Run "make alldeps" Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Changes to be committed:Keith2008-09-088-33/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | (use "git reset HEAD <file>..." to unstage) modified: Makefile.in modified: Mkfiles/msvc.mak modified: Mkfiles/netware.mak modified: Mkfiles/openwcom.mak modified: Mkfiles/owlinux.mak modified: outform.h modified: output/outmacho.mac modified: output/outmacho32.c
* | Changes to be committed:Keith Kanios2008-09-082-0/+1398
|/ | | | (use "git reset HEAD <file>..." to unstage)
* NASM 2.04rc1nasm-2.04rc1H. Peter Anvin2008-09-031-1/+1
|
* Remove obsolete tagrelease script (duplicate of tag-release)H. Peter Anvin2008-09-031-15/+0
|
* Update doc/changes.srcH. Peter Anvin2008-09-031-2/+10
|
* Document %use smartalignH. Peter Anvin2008-09-031-0/+45
|
* Document %unmacroH. Peter Anvin2008-09-031-2/+26
|
* outcoff: stylistic cleanupsH. Peter Anvin2008-09-021-11/+13
| | | | | | | | Don't use explicit L's for things which are really size_t; not only is it unnecessarily ugly, but it's wrong in a lot of ways. Do some other minor stylistic cleanups. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outcoff: default output symbols to T_NULLH. Peter Anvin2008-09-021-0/+1
| | | | | | | | We would leave the output symbol type uninitialized. Explicitly initialize it to zero (T_NULL, meaning no symbol type information), since that's what was effectively done. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 2048950: fix crash due to mmacro list overflowH. Peter Anvin2008-09-011-1/+2
| | | | | | | When allocating the buffer for an mmacro list, we apparently failed to guarantee space for the terminating NULL. This almost certainly caused the crash described in BR 2048950, and quite possibly BR 1284169.
* test/new: clean up whitespaceH. Peter Anvin2008-08-291-1/+0
|
* Script to create new test case boilerplateH. Peter Anvin2008-08-291-0/+10
|
* Accept implicit memory size for VMREAD/VMWRITEH. Peter Anvin2008-08-282-4/+8
|
* BR 2029472: Wrong operand size for VMREAD/VMWRITE in 64-bit modeH. Peter Anvin2008-08-282-2/+26
| | | | Fix the operand size for VMREAD/VMWRITE in 64-bit mode
* .gitignore: ignore some editor backup filesH. Peter Anvin2008-08-281-0/+3
| | | | Ignore a couple of variants of editor backup files.
* BR 2028995: Missing MOVNTI m64, r64H. Peter Anvin2008-08-282-1/+12
| | | | Fix MOVNTI with a 64-bit argument.
* Testcase for XCRYPTH. Peter Anvin2008-08-281-0/+24
|
* BR 2029829: Accept VIA XCRYPT instructions with or without REPH. Peter Anvin2008-08-283-8/+28
| | | | | | | Accept the VIA XCRYPT instructions either with or without a REP prefix, as documented. Add the missing XCRYPTCTR instruction.
* BR 2039212: Handle indirect far jumps in 64-bit modeH. Peter Anvin2008-08-282-2/+16
| | | | | Handle indirect far jumps in 64-bit mode. Default to 64 bit unless overridden, for consistency with other jumps.
* Include "nasm.h" in "float.h"H. Peter Anvin2008-08-281-0/+2
| | | | | | "float.h" references efunc, so it needs "nasm.h". It also has uint8_t and so need <inttypes.h>, but that's part of "nasm.h".
* Add 256-bit AVX stores per the latest AVX spec.H. Peter Anvin2008-08-271-2/+7
| | | | Add 256-bit forms of VMOVNTPD, VMOVNTPS, and VMOVNT[DQ]Q.
* Add AVX forms of the AES instructions (new in the latest AVX spec)H. Peter Anvin2008-08-271-0/+12
| | | | The AES instructions, too, have gotten VEX forms.
* test: Fix file with no final newlineH. Peter Anvin2008-08-241-1/+1
| | | | | | Fix test/br2030823.asm, which had no final newline. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 2067820: add the MOVSXD instructionH. Peter Anvin2008-08-241-1/+2
| | | | | | | | The official mnemonic for 32-to-64-bit sign extension is MOVSXD for some idiotic reason. Add support for it while continue to recognize MOVSX for this as an alias. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 2067837: remove double add of VEX instruction lengthH. Peter Anvin2008-08-241-2/+0
| | | | | | | We added the length of VEX prefixes twice in calcsize(); this resulted in the wrong symbol addresses when compiling without the optimizer. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 2062342: ndisasm: r12 *can* be an index registerH. Peter Anvin2008-08-201-2/+2
| | | | | | | R12 can be used as an index register. Special encodings in the modr/m byte are done *without* consideration for the REX prefix, but special encodings in the SIB byte *do* take the REX prefix into consideration, since it doesn't affect the overall instruction format.
* BR 2030823: Problem with the 256-bit FMA instructionsH. Peter Anvin2008-08-132-16/+21
| | | | Fix the 256-bit FMA instructions per bug report.
* BR 2043111: Typo in insns.dat: VCMPFT_OQPD VCMPFT_OQPSH. Peter Anvin2008-08-131-2/+2
| | | | Fix typo
* minor bugfix in performtest.plVictor van den Elzen2008-08-061-1/+1
|
* Add macro-defaults warning class and documentation.Victor van den Elzen2008-08-065-32/+131
|
* BR 2034542: fix crash when touching __FILE__H. Peter Anvin2008-07-312-1/+6
| | | | | Touching __FILE__ would cause a dereference of an uninitialized pointer. Fix.
* BR 2028910: fix decoding of VEX prefixes in 16- and 32-bit modeH. Peter Anvin2008-07-301-16/+17
| | | | | | We would incorrectly set a bunch of VEX-related state for C4 and C5 bytes, even though we had already rejected it as not a VEX prefix due to the top two bits of the following byte not being 11.
* BR 2025977: Handle SLDT with a 64-bit register operandH. Peter Anvin2008-07-301-0/+2
| | | | | | Handle SLDT with a 64-bit register operand. Don't generate a REX.W prefix in the assembler, since zero-extending is just fine, but do support it in the disassembler.
* preproc: restore correct break; in do_directive()H. Peter Anvin2008-07-231-10/+10
| | | | | | Checkin a26433db6805cf1f1d711eb820f6a50a98f54f36 incorrectly changed a few break;s in do_directive() that were *inside loops* to returns. This broke single-line macros as well as %exitrep; fix.