| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
latest master/2.07 source
|
| |
|
|
|
|
|
|
| |
-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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Don't include macros for output formats we aren't compiling in.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
Be a bit more strict with open() calls.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Add final newline to end of outmacho.mac
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ \
| |/
| |
| |
| | |
Conflicts:
output/outmacho.mac
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
- Fix accidental revert to an older version of Makefile.in.
- Run "make alldeps"
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(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
|
|/
|
|
| |
(use "git reset HEAD <file>..." to unstage)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix the operand size for VMREAD/VMWRITE in 64-bit mode
|
|
|
|
| |
Ignore a couple of variants of editor backup files.
|
|
|
|
| |
Fix MOVNTI with a 64-bit argument.
|
| |
|
|
|
|
|
|
|
| |
Accept the VIA XCRYPT instructions either with or without a REP
prefix, as documented.
Add the missing XCRYPTCTR instruction.
|
|
|
|
|
| |
Handle indirect far jumps in 64-bit mode. Default to 64 bit unless
overridden, for consistency with other jumps.
|
|
|
|
|
|
| |
"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 forms of VMOVNTPD, VMOVNTPS, and VMOVNT[DQ]Q.
|
|
|
|
| |
The AES instructions, too, have gotten VEX forms.
|
|
|
|
|
|
| |
Fix test/br2030823.asm, which had no final newline.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fix the 256-bit FMA instructions per bug report.
|
|
|
|
| |
Fix typo
|
| |
|
| |
|
|
|
|
|
| |
Touching __FILE__ would cause a dereference of an uninitialized
pointer. Fix.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|