Wed Feb 1 12:40:17 2023 UTC ()
nasm: updated to 2.16.01

Version 2.16.01

This is a documentation update release only.

Fix the creation of the table of contents in the HTML version of the documentation.

Version 2.16

Support for the rdf format has been discontinued and all the RDOFF utilities has been removed.

The --reproducible option now leaves the filename field in the COFF object format blank. This was always rather useless since it is only 18 characters long; as such debug formats have to carry their own filename information anyway.

Fix handling of MASM-syntax reserved memory (e.g. dw ?) when used in structure definitions.

The preprocessor now supports functions, which can be less verbose and more convenient than the equivalent code implemented using directives. See section 4.4.

Fix the handling of %00 in the preprocessor.

Fix incorrect handling of path names affecting error messages, dependency generation, and debug format output.

Support for the RDOFF output format and the RDOFF tools have been removed. The RDOFF tools had already been broken since at least NASM 2.14. For flat code the ELF output format recommended; for segmented code the obj (OMF) output format.

New facility: preprocessor functions. Preprocessor functions, which are expanded similarly to single-line macros, can greatly simplify code that in the past would have required a lengthy list of directives and intermediate macros. See section 4.4.

Single-line macros can now declare parameters (using a && prefix) that creates a quoted string, but does not requote an already quoted string. See section 4.2.1.

Instruction table updated per public information available as of November 2022.

All warnings in the preprocessor have now been assigned warning classes. See appendix A.

Fix the invalid use of RELA窶鍍ype relocations instead of REL窶鍍ype relocations when generating DWARF debug information for the elf32 output format.

Fix the handling at in istruc when the structure contains local labels. See section 5.9.2.

When assembling with --reproducible, don't encode the filename in the COFF header for the coff, win32 or win64 output formats. The COFF header only has space for an 18-character filename, which makes this field rather useless in the first place. Debug output data, if enabled, is not affected.

Fix incorrect size calculation when using MASM syntax for non-byte reservations (e.g. dw ?.)

Allow forcing an instruction in 64-bit mode to have a (possibly redundant) REX prefix, using the syntax {rex} as a prefix.

Add a {vex} prefix to enforce VEX (AVX) encoding of an instruction, either using the 2- or 3-byte VEX prefixes.

The CPU directive has been augmented to allow control of generation of VEX (AVX) versus EVEX (AVX-512) instruction formats, see section 7.11.

Some recent instructions that previously have been only available using EVEX encodings are now also encodable using VEX (AVX) encodings. For backwards compatibility these encodings are not enabled by default, but can be generated either via an explicit {vex} prefix or by specifying either CPU LATEVEX or CPU NOEVEX; see section 7.11.

Document the already existing %unimacro directive. See section 4.5.12.

Fix a code range generation bug in the DWARF debug format (incorrect information in the DW_AT_high_pc field) for the ELF output formats. This bug happened to cancel out with a bug in older versions of the GNU binutils linker, but breaks with other linkers and updated or other linkers that expect the spec to be followed.

Fix segment symbols with addends, e.g. jmp _TEXT+10h:0 in output formats that support segment relocations, e.g. the obj format.

Fix various crashes and hangs on invalid input.


(adam)
diff -r1.69 -r1.70 pkgsrc/devel/nasm/Makefile
diff -r1.13 -r1.14 pkgsrc/devel/nasm/PLIST
diff -r1.36 -r1.37 pkgsrc/devel/nasm/distinfo

cvs diff -r1.69 -r1.70 pkgsrc/devel/nasm/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/nasm/Makefile 2022/06/28 11:31:49 1.69
+++ pkgsrc/devel/nasm/Makefile 2023/02/01 12:40:16 1.70
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.69 2022/06/28 11:31:49 wiz Exp $ 1# $NetBSD: Makefile,v 1.70 2023/02/01 12:40:16 adam Exp $
2 2
3DISTNAME= nasm-2.15.05 3DISTNAME= nasm-2.16.01
4PKGREVISION= 2 
5CATEGORIES= devel lang 4CATEGORIES= devel lang
6MASTER_SITES= http://www.nasm.us/pub/nasm/releasebuilds/${PKGVERSION_NOREV}/ 5MASTER_SITES= http://www.nasm.us/pub/nasm/releasebuilds/${PKGVERSION_NOREV}/
7EXTRACT_SUFX= .tar.xz 6EXTRACT_SUFX= .tar.xz
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.nasm.us/ 9HOMEPAGE= https://www.nasm.us/
11COMMENT= General-purpose x86 assembler 10COMMENT= General-purpose x86 assembler
12LICENSE= 2-clause-bsd 11LICENSE= 2-clause-bsd
13 12
14USE_TOOLS+= gmake makeinfo perl 13USE_TOOLS+= gmake makeinfo perl
15GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
16CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nasm 15CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nasm
17CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/nasm/html 16CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/nasm/html

cvs diff -r1.13 -r1.14 pkgsrc/devel/nasm/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/nasm/PLIST 2020/08/08 18:35:10 1.13
+++ pkgsrc/devel/nasm/PLIST 2023/02/01 12:40:16 1.14
@@ -1,47 +1,30 @@ @@ -1,47 +1,30 @@
1@comment $NetBSD: PLIST,v 1.13 2020/08/08 18:35:10 nia Exp $ 1@comment $NetBSD: PLIST,v 1.14 2023/02/01 12:40:16 adam Exp $
2bin/ldrdf 
3bin/nasm 2bin/nasm
4bin/ndisasm 3bin/ndisasm
5bin/rdf2bin 
6bin/rdf2com 
7bin/rdf2ihx 
8bin/rdf2ith 
9bin/rdf2srec 
10bin/rdfdump 
11bin/rdflib 
12bin/rdx 
13man/man1/ldrdf.1 
14man/man1/nasm.1 4man/man1/nasm.1
15man/man1/ndisasm.1 5man/man1/ndisasm.1
16man/man1/rdf2bin.1 
17man/man1/rdf2com.1 
18man/man1/rdf2ihx.1 
19man/man1/rdf2ith.1 
20man/man1/rdf2srec.1 
21man/man1/rdfdump.1 
22man/man1/rdflib.1 
23man/man1/rdx.1 
24share/doc/nasm/html/local.css 6share/doc/nasm/html/local.css
25share/doc/nasm/html/nasmdo10.html 7share/doc/nasm/html/nasmdo10.html
26share/doc/nasm/html/nasmdo11.html 8share/doc/nasm/html/nasmdo11.html
27share/doc/nasm/html/nasmdo12.html 9share/doc/nasm/html/nasmdo12.html
28share/doc/nasm/html/nasmdo13.html 10share/doc/nasm/html/nasmdo13.html
29share/doc/nasm/html/nasmdoc.css 11share/doc/nasm/html/nasmdoc.css
30share/doc/nasm/html/nasmdoc0.html 12share/doc/nasm/html/nasmdoc0.html
31share/doc/nasm/html/nasmdoc1.html 13share/doc/nasm/html/nasmdoc1.html
32share/doc/nasm/html/nasmdoc2.html 14share/doc/nasm/html/nasmdoc2.html
33share/doc/nasm/html/nasmdoc3.html 15share/doc/nasm/html/nasmdoc3.html
34share/doc/nasm/html/nasmdoc4.html 16share/doc/nasm/html/nasmdoc4.html
35share/doc/nasm/html/nasmdoc5.html 17share/doc/nasm/html/nasmdoc5.html
36share/doc/nasm/html/nasmdoc6.html 18share/doc/nasm/html/nasmdoc6.html
37share/doc/nasm/html/nasmdoc7.html 19share/doc/nasm/html/nasmdoc7.html
38share/doc/nasm/html/nasmdoc8.html 20share/doc/nasm/html/nasmdoc8.html
39share/doc/nasm/html/nasmdoc9.html 21share/doc/nasm/html/nasmdoc9.html
40share/doc/nasm/html/nasmdoca.html 22share/doc/nasm/html/nasmdoca.html
41share/doc/nasm/html/nasmdocb.html 23share/doc/nasm/html/nasmdocb.html
42share/doc/nasm/html/nasmdocc.html 24share/doc/nasm/html/nasmdocc.html
43share/doc/nasm/html/nasmdocd.html 25share/doc/nasm/html/nasmdocd.html
44share/doc/nasm/html/nasmdoce.html 26share/doc/nasm/html/nasmdoce.html
 27share/doc/nasm/html/nasmdocf.html
45share/doc/nasm/html/nasmdoci.html 28share/doc/nasm/html/nasmdoci.html
46share/doc/nasm/html/nasmlogw.png 29share/doc/nasm/html/nasmlogw.png
47share/doc/nasm/nasmdoc.txt 30share/doc/nasm/nasmdoc.txt

cvs diff -r1.36 -r1.37 pkgsrc/devel/nasm/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/nasm/distinfo 2021/10/26 10:15:42 1.36
+++ pkgsrc/devel/nasm/distinfo 2023/02/01 12:40:16 1.37
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.36 2021/10/26 10:15:42 nia Exp $ 1$NetBSD: distinfo,v 1.37 2023/02/01 12:40:16 adam Exp $
2 2
3BLAKE2s (nasm-2.15.05.tar.xz) = c8d733a2c17b6712b8c90994d6d0811ad6a5dac3104600cd2ff60366f0361fc7 3BLAKE2s (nasm-2.16.01.tar.xz) = 4340eea2e650fa4e03f9286c1c91cf3aa9bff8d9156637b4e66130ed39beeffc
4SHA512 (nasm-2.15.05.tar.xz) = 512f90a2584f1c5811429274b97c64a2cedf37b9fdeffb1bcd0ea64afd9ecc19a2d7877ca8f1e05393aa324153fc9f39ea51dacbf8d25a7d5a2d7728c925dba7 4SHA512 (nasm-2.16.01.tar.xz) = 51fccb5639ce019d9c423c0f279750ffbd74c64cd41dd3b185d1aa1a1aaed79c5d3cd8d4bebbc13ee249a375ed27457ea2abde1a4dbb24d354598fffd1254833
5Size (nasm-2.15.05.tar.xz) = 995732 bytes 5Size (nasm-2.16.01.tar.xz) = 1017732 bytes
6SHA1 (patch-Makefile.in) = 30f8292c622e86e870427be0ca530ccb8dc3feaa 6SHA1 (patch-Makefile.in) = 30f8292c622e86e870427be0ca530ccb8dc3feaa
7SHA1 (patch-doc_Makefile.in) = 0baf4cb8ce01403fbe93b3168d7bc00472cbcb61 7SHA1 (patch-doc_Makefile.in) = 0baf4cb8ce01403fbe93b3168d7bc00472cbcb61