aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* preproc: prohibit unmacro while macro expansionnasm-2.15.xxIgor Munkin2020-12-317-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | If macro is undefined while it's being expanded, use after free occurs, since the MMacro instance is released, but it is still used to proceed the expansion. This change forbids macro undefinition: non-fatal error is raised and the MMacro instance is not released if it is being processed by NASM preprocessor. Consider the following example: | $ cat test.asm | %macro m 0 | %unmacro m 0 | %endmacro | m | $ ./nasm test.asm | test.asm:4: error: `%unmacro' can't undefine the macro being expanded | test.asm:2: ... from macro `m' defined here Fixes BR3392531 and BR3392716. Signed-off-by: Igor Munkin <imun@cpan.org> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc/changes: Document rdf header fixCyrill Gorcunov2020-10-101-0/+5
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* rdoff/rdfwriteheader: Write object length and header length in correct orderOzkan Sezer2020-10-101-2/+2
| | | | | | | | | | | Compared to 2.12.xx rdfwriteheader() writes the object length and header length in flipped order. Issue seems to have been introduced by commit 8dc965347ddf. BR3392717 Signed-off-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* nasm-t: do not strip newlines from outputnasm-2.15.xx-travisCyrill Gorcunov2020-09-1851-55/+56
| | | | | | | | | | | | | Currently we strip newlines from files on read and write procedures for better diff output, but as being pointed by hpa@ this makes quite inconvenient to work with tests in a manual mode. Thus lets left outputs as is. We have to update all tests with template outputs since by default output streams are ending with newline. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* nasm-t: add fixme about data readingCyrill Gorcunov2020-09-181-0/+3
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* nasm-t: no need to strip json filesCyrill Gorcunov2020-09-181-1/+1
| | | | | | The json library can handle newlines by self. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Makefile.in: fix warning dependenciesH. Peter Anvin (Intel)2020-09-113-36/+95
| | | | | | | | | Fix circular dependency on asm/warnings.c by factoring out warnings.$(O) from the dependencies, and use a separate <file>.time which "generate" the main source file as a "side effect", giving us a null target. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* warnings.pl: again, don't update the timestamp unless we need toH. Peter Anvin (Intel)2020-09-111-12/+15
| | | | | | Don't update the timestamp unless we really have to do so. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* .gitignore: ignore timestamp (*.time) filesH. Peter Anvin (Intel)2020-09-111-0/+1
| | | | | | Ignore timestamp files, they are transient. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: improve documentation of %ifid et alH. Peter Anvin (Intel)2020-09-112-5/+9
| | | | | | Clarify some of the semantics of %ifid, %ifnum, and %ifstr. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* travis: add br3392442Cyrill Gorcunov2020-09-074-0/+19
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add br3392707Cyrill Gorcunov2020-09-065-0/+68
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: nasm-t -- fix --error optionCyrill Gorcunov2020-09-061-2/+4
| | | | | | Write "expected" or "over" if requested. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: warnstack -- fix spacesCyrill Gorcunov2020-09-061-5/+5
| | | | | | | We use tabs in json so make it consistent. No functional change. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.15.05nasm-2.15.05H. Peter Anvin2020-08-281-1/+1
|
* NASM 2.15.05rc2nasm-2.15.05rc2H. Peter Anvin (Intel)2020-08-271-1/+1
|
* Add option to create reproducible outputH. Peter Anvin (Intel)2020-08-2712-42/+48
| | | | | | | | | | | | | | | We need the ability to produce consistent output for our own tests, anyway, so make this a user-accessible feature. This was requested in BR 3392635. This obsoletes the NASM_TEST_RUN environment variable; simply use the normal NASMENV environment variable instead. The .obj tests in travis needed to be updated in order to remove the rather pointless suffix " CONST" from the NASM signatures. Reported-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* travis: fix "warnstack" testH. Peter Anvin (Intel)2020-08-274-17/+8
| | | | | | | | The "warnstack" test is supposed to test the warning stack, but the [warning] directive is never seen in preprocess-only mode, so run it in -f bin mode. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* NASM 2.15.05rc1nasm-2.15.05rc1H. Peter Anvin (Intel)2020-08-271-1/+1
|
* BR 3392715: fix %ifid with $ and $$H. Peter Anvin (Intel)2020-08-275-4/+40
| | | | | | | | %ifid $ and %ifid $$ has traditionally been false, revert to that behavior. Reported-by: Mike Hommey <mh+anfz@glandium.org> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* trevis: unify tmap descriptorCyrill Gorcunov2020-08-252-10/+12
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add lwpCyrill Gorcunov2020-08-253-0/+225
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: enable winalign testCyrill Gorcunov2020-08-252-1/+0
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add br3392411Cyrill Gorcunov2020-08-253-0/+34
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* output/outcoff.c: zap timestamp when running testsCyrill Gorcunov2020-08-251-1/+11
| | | | | | | | When we're running tests we must not fail due to time stamp difference in a header. Lets zap it if test run is detected. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: nasm-t -- add ability to specify errorCyrill Gorcunov2020-08-251-0/+6
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add br3392363Cyrill Gorcunov2020-08-253-0/+18
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add br3392396Cyrill Gorcunov2020-08-253-0/+18
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add br3392392Cyrill Gorcunov2020-08-254-0/+37
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add v4Cyrill Gorcunov2020-08-254-0/+40
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add sregCyrill Gorcunov2020-08-253-0/+78
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add retCyrill Gorcunov2020-08-256-0/+104
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add vaesencCyrill Gorcunov2020-08-253-0/+32
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add vexCyrill Gorcunov2020-08-254-0/+32
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add vgatherCyrill Gorcunov2020-08-253-0/+88
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add warnstackCyrill Gorcunov2020-08-254-0/+36
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add vpcmpCyrill Gorcunov2020-08-253-0/+40
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add winalignCyrill Gorcunov2020-08-253-0/+59
| | | | | | | It is disabled by now -- we need to teach nasm-t to skip some parts of output (due to format specifics). Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: nasm-t -- add ability to disable testCyrill Gorcunov2020-08-251-0/+5
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add xdefine testCyrill Gorcunov2020-08-253-0/+28
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add br3392275Cyrill Gorcunov2020-08-253-0/+23
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: nasm-t -- add ability to generate new testsCyrill Gorcunov2020-08-251-0/+118
| | | | | | Just to not fill descriptor by hands every time. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add xpaste testCyrill Gorcunov2020-08-243-0/+18
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add avx2Cyrill Gorcunov2020-08-243-0/+1619
| | | | | | Initial conversion by nasm64developer. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add br3104312Cyrill Gorcunov2020-08-243-0/+24
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add amx testCyrill Gorcunov2020-08-243-0/+49
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: update absoluteCyrill Gorcunov2020-08-241-0/+3
| | | | | | To match test/ instance. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* travis: add a64 testCyrill Gorcunov2020-08-243-0/+41
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.15.04nasm-2.15.04H. Peter Anvin (Intel)2020-08-201-1/+1
|
* NASM 2.15.04rc6nasm-2.15.04rc6H. Peter Anvin2020-08-201-1/+1
|