./devel/nasm, General-purpose x86 assembler

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 3.01, Package name: nasm-3.01, Maintainer: pkgsrc-users

The Netwide Assembler, NASM, is an 80x86 assembler designed for portability
and modularity. It supports a range of object file formats, including Linux
a.out and ELF, NetBSD/FreeBSD, COFF, Microsoft 16-bit OBJ and Win32. It will
also output plain binary files. Its syntax is designed to be simple and easy
to understand, similar to Intel's but less complex.


Required to build:
[textproc/xmlto] [textproc/asciidoc] [pkgtools/cwrappers]

Master sites:

Filesize: 1464 KB

Version history: (Expand)


CVS history: (Expand)


   2025-11-08 02:43:44 by Ryo ONODERA | Files touched by this commit (3) | Package updated
Log message:
devel/nasm: Fix build under NetBSD 10

The previous patch is for c23 and it does not work for c17.
Force c17 use and update the patch for c17.
   2025-11-07 23:10:31 by Ryo ONODERA | Files touched by this commit (6) | Package updated
Log message:
devel/nasm: Update to 3.01

Changelog:
Version 3.01

  * A new obj2 version of the obj output format, intended for use on OS/2. See
    section 9.5.

  * The condition after %if or %elif would be evaluated while output is
    suppressed after %exitrep or %exitmacro. Although no output would be
    generated in either case, assembly would fail if evaluating the expression
    triggered an error.

  * Fix encoding of TCVTROWPS2PHL, correct multiple AVX512-BF16 instructions'
    operand formats and typoed mnemonics.

  * The unofficial but obvious alternate form TEST reg,mem was not accepted by
    NASM 3.00; corrected.

  * For the obj output format, multiple GROUP directives can now be specified
    for the same group; the resulting group includes all sections specified in
    all GROUP directives for the group.

  * A new %selbits() preprocessor function. See section 5.4.19.

  * A new --bits option as convenience shorthand for --before "BITS \ 
...". See
    section 2.1.31.

  * The options and pragmas for configuring external label mangling were
    inconsistent, the former using the spelling postfix and the latter suffix.
    Furthermore, these were also documented as directives in addition to
    pragmas. Implement the already documented directives (bracketed forms only)
    and allow both postfix and suffix in all cases.

    See section 2.1.28 and section 8.10.

  * Define additional permissive patterns and fix several opcode bugs.

  * Fix parsing of two-operand forms of x87 instructions.

  * Fix bogus "absolute address can not be RIP-relative" warning.

  * Hopefully fix building with OpenWatcom.

  * Generate a warning, promoted to error by default, on the use of o64
    prefixes in 16- or 32-bit mode. If demoted to a warning or suppressed the
    prefix is ignored, but likely will trigger subsequent, harder to debug,
    error messages.

  * More consistent handling of jump and call instructions with specified
    operand sizes.

  * Fix an operand size handling bug in the CMPXCHG instruction.

Version 3.00

  * Improve the documentation for building from source (appendix D).

  * Add support for the APX and AVX10 instruction sets, and various
    miscellaneous new instructions.

  * Add new preprocessor functions: %b2hs(), %chr(), %depend(), %find(), %findi
    (), %hs2b(), %null(), %ord(), %pathsearch(), and %realpath(). See section
    5.4.

  * New preprocessor directive %note to insert a note in the list file, without
    issuing an external diagnosic. Unlike a comment, it is optionally
    macro-expanded, see section 5.11.

  * New preprocessor directive %iffile (and corresponding function %isfile())
    to test for the existence of a file. See section 5.6.12.

  * New preprocessor directive %ifdirective to test for the existence of a
    preprocessor directive, assembly directive, or pseudo-instruction; see
    section 5.6.10.

  * Fix a number of invalid memory references (usually causing crashes) on
    various invalid inputs.

  * Fix multiple bugs in the handling of $??escaped symbols.

  * The use of $ as a prefix for hexadecimal numbers has been deprecated, and
    will now issue a warning. A new directive [DOLLARHEX] can be used to
    disable this syntax entirely, see section 8.12.

  * Fix the generation of segment selector references (mainly used in the obj
    output format.)

  * Fix crash in the obj backend when code was emitted into the default
    segment, without any labels having been defined.

  * Clean up the command-line help text (-h) and break it down into individual
    topics, as the previous output was just too verbose to be practical as a
    quick reference.

  * The implicit DEFAULT ABS in 64-bit mode is deprecated and may be changed to
    REL in the future. See section 8.2. A warning is now emitted for this
    condition.

  * It is now possible to set the REL/ABS default for memory accesses using FS:
    or GS:, see section 8.2.

  * The __?DEFAULT?__ standard macro now reflects the settings of the DEFAULT
    directive. See section 6.4.

  * The NASM preprocessor now assumes that an unknown directive starting with
    %if or %elif is a misspelled or not yet implemented conditional directive,
    and tries to match it with a corresponding %endif. See section 5.6.14.

  * The masm macro package now defines a macro for x87 register syntax. See
    section 7.5.

  * A new macro package, vtern, to simplify generation of the control
    immediates for the VPTERNLOGD and VPTERNLOGQ instructions. See section 7.6.

  * A new command line option -LF allows overriding [LIST -] directives.

  * In the obj output format, allow a segment in the FLAT pseudo-group to also
    belong to another (real) group. Used on OS/2.

  * Add a new build_version directive to the Mach-O backend. See section 9.9.6.

  * Fix a spec violation in the generation of DWARF debugging information on
    ELF.

  * Response files can now be nested.

  * Many documentation improvements.

Version 2.16.03

This is a source build machinery and documentation update only. There are no
functionality changes.

  * Fix building from git in a separate directory from the source.

  * Remove some irrelevant files from the source distribution.

  * Make the documentation stronger that -O0 or -O1 are probably not what the
    user wants. See section 2.1.24.

  * Fix configure --enable-lto build option.

  * Update the included RPM .spec file.

Version 2.16.02

  * Fix building from the source distribution in a separate directory from the
    source.

  * Fix a number of issues when building from source, mostly involving
    configure or dependency generation.

    In particular, more aggressively avoid cross-compilation problems on Unix/
    Linux systems automatically invoking WINE. We could end up invoking WINE
    even when we didn't want to, making configure think it was running native
    when in fact cross-compiling.

  * Hopefully fix compiling with the latest versions of MSVC/nmake.

  * Windows host: add embedded manifest file. Without a manifest, Windows
    applications force a fixed PATH_MAX limit to any pathname; this is
    unnecessary.

  * Add support VEX-encoded SM4-NI instructions.

  * Add support for VEX-encoded SM3-NI instructions.

  * Add support for VEX-encoded SHA512-NI instructions.

  * PTWRITE opcode corrected (F3 prefix required.)

  * Disassembler: the SMAP instructions are NP; notably the prefixed versions
    of CLAC are ERETU/ERETS.

  * Add support for Flexible Return and Exception Delivery (FRED): the LKGS,
    ERETS and ERETU instructions.

  * Fix external references to segments in the obj (OMF) and possibly other
    output formats.

  * Always support up to 8 characters, i.e. 64 bits, in a string-to-numeric
    conversion.

  * Preprocessor: add %map() function to expand a macro from a list of
    arguments, see section 5.4.12.

  * Preprocessor: allow the user to specify the desired radix for an evaluated
    parameter. It doesn't make any direct difference, but can be nice for
    debugging or turning into strings. See the = modifier in section 5.2.1.

  * Update documentation: __USE_package__ is now __?USE_package?__.

  * Documentation: correct a minor problem in the expression grammar for Dx
    statements, see section 3.2.1.

  * Preprocessor: correctly handle empty %rep blocks.

  * Preprocessor: add options for a base prefix to %num(), see section 5.4.14.

  * Preprocessor: add a %hex() function, equivalent to %eval() except that it
    producess hexadecimal values that are nevertheless valid NASM numeric
    constants, see section 5.4.9.

  * Preprocessor: fix the parameter number in error messages (should be
    1-based, like %num references to multi-line macro arguments.)

  * Documentation: be more clear than the bin format is simply a linker built
    into NASM. See section 9.1.

  * Adjust the LOCK prefix warning for XCHG.

    LOCK XCHG reg,mem would issue a warning for being unlockable, which is
    incorrect. In this case the reg,mem encoding is simply an alias for the mem
    ,reg encoding. However, XCHG is always locked, so create a new warning
    (-w+prefix-lock-xchg) to explicitly flag a user-specified LOCK XCHG;
    default off. Future versions of NASM may remove the LOCK prefix when
    optimization is enabled.

  * Fix broken dependency-list generation.

  * Add optional warnings for specific relocation types (-w+reloc-*, see
    appendix A), default off.

    Some target environments may have specific restrictions on what kinds of
    relocations are possible or allowed.

  * Error out on certain bad syntax in Dx statements, such as db 1 2. See
    section 3.2.1.
   2022-06-28 13:38:00 by Thomas Klausner | Files touched by this commit (3952)
Log message:
*: recursive bump for perl 5.36
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-05-24 21:56:06 by Thomas Klausner | Files touched by this commit (3575)
Log message:
*: recursive bump for perl 5.34
   2020-10-12 14:54:01 by Thomas Klausner | Files touched by this commit (1)
Log message:
nasm: remove unnecessary TOOL_DEPENDS

Override detection just to be on the safe side.

Addresses PR 55709 by Joern Clausen
   2020-09-29 16:08:36 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
nasm: updated to 2.15.05

Version 2.15.05

Correct %ifid $ and %ifid $$ being treated as true. See section 4.4.6.

Add --reproducible option to suppress NASM version numbers and timestamps in \ 
output files. See section 2.1.34.

Version 2.15.04

More sensible handling of the case where one single-line macro definition will \ 
shadow another. A warning will be issued, but the additional definition will be \ 
allowed. For the existing error case where both a parameterless and parametered \ 
macro are created, that warning is promoted to an error by default.

Add special preprocessor tokens %*? and %*?? that expand like %? and %?? in \ 
single-line macros only. See section 4.1.6.

Correct the encoding of the ENQCMDS and TILELOADT1 instructions.

Fix case where the COFF backend (the coff, win32 and win64 output formats) would \ 
add padding bytes in the middle of a section if a SECTION/SEGMENT directive was \ 
provided which repeated an ALIGN= attribute. This neither matched legacy \ 
behavior, other backends, or user expectations.

Fix SSE instructions not being recognized with an explicit memory operation size \ 
(e.g. movsd qword [eax],xmm0).

The -L+ option no longer enables -Lw, which is mainly useful to debug NASM \ 
crashes. See section 2.1.4.

Document long-standing hazards in the use of $ in Dx statements, see section 3.2.1.

The NASM-only RDOFF output format backend, which has been broken since at least \ 
NASM 2.14, has been disabled. The RDOFF tools are scheduled to be removed from \ 
the NASM distribution in NASM 2.16. If you have a concrete use case for RDOFF, \ 
please file a NASM bug report at https://bugs.nasm.us/ as soon as possible. See \ 
section 8.13.