aboutsummaryrefslogtreecommitdiffstats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* doc: some more cleanups and detailed specificationsH. Peter Anvin (Intel)2020-06-271-10/+19
| | | | | | Some more mostly editorial changes. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: editorial cleanupsH. Peter Anvin (Intel)2020-06-271-15/+37
| | | | | | | Clean up the language of a few sections, add a few examples, and better document %pragma limit. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* changes.src: update for 2.15.01H. Peter Anvin (Intel)2020-06-271-0/+9
| | | | Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: document operator and Dx changesH. Peter Anvin (Intel)2020-06-252-43/+168
| | | | | | | Document new operators, removal of special casing for %if, and the MASM-like enhancements to the Dx directives. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: various documentation updatesH. Peter Anvin (Intel)2020-06-142-106/+265
|
* Makefile portability improvement, build nasmdoc.pdf.xzH. Peter Anvin (Intel)2020-05-262-13/+44
| | | | | | | | Significantly improve the portability/reliability of a general make command. Build a .pdf.xz version of the documentation, using an uncompressed pdf as basis. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: Update for upcoming 2.15 releasenasm-2.15.xx-preAndrey Matyukov2020-05-063-23/+206
| | | | | | | Update release notes and documentation for 2.15 Signed-off-by: Andrey Matyukov <andrey.matyukov@intel.com> Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
* doc: we really need a Fontmap fileH. Peter Anvin2019-10-043-25/+46
| | | | | | | | | | | | | | | | | It turns out that we need a Fontmap file after all, *and* -I. to make gs find it. Inconsistent results came from stray Fontmap files from previous debug attempts. Now generate both fontpath and Fontmap, and hopefully at least one of them should work. We might, in fact, need both, one for gs to know where the files are and one for gs to know it is allowed to read them. The core problem seems to be that gs will find OTF fonts by its normal discovery mechanisms, but for some reason don't seem to use them unless it can find them in a Fontmap, Font directory, of CIDFont directory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Correct __ALIGN_ -> __?ALIGN_H. Peter Anvin2019-08-271-2/+2
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* preproc: standard macros now C-safe, %aliases off, fix %? recursionH. Peter Anvin2019-08-271-90/+90
| | | | | | | | | | | | | | | | | | | | Enough users expect the namespace starting with underscore to be safe for symbols. Change our private namespace from __foo__ to __?foo?__. Use %defalias to provide backwards compatiblity (by using %defalias instead of %define, we handle the case properly where the user changes the value.) Add a preprocessor directive: %aliases off ... to disable all smacro aliases and thereby making the namespace clean. Finally, fix infinite recursion when seeing %? or %?? due to paste_tokens(). If we don't paste anything, the expansion is done. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: actually build and propagate fontpath fileH. Peter Anvin (Intel)2019-08-061-4/+7
| | | | | | | The machinery was built in, but the option wasn't invoked from the Makefile. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: fix yet another set of Ghostscript font problemsH. Peter Anvin2019-06-063-4/+43
| | | | | | | | Seems like Ghostscript has managed to break fontconfig support again, at least in Fedora 30. Help Ghostscript along by giving it an explicit font path. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* outelf: get rid of long-since-obsolete gnu extensions warningH. Peter Anvin2019-06-061-10/+9
| | | | | | | R_386_[PC]{8,16} have been part of the official ELF32 spec for a very long time now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'evalmacro'H. Peter Anvin (Intel)2019-04-242-46/+98
|\ | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: asm/preproc.c output/elf.h output/outelf.c output/outelf.h version Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * ELF: the .note section should be 4-byte alignedH. Peter Anvin2019-02-261-1/+1
| | | | | | | | | | | | | | The ELF .note section contains of 4-byte words and should be aligned accordingly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Handle more ELF section typesH. Peter Anvin2019-02-262-56/+80
| | | | | | | | | | | | | | note, preinit_array, init_array, and fini_array are ELF section types that can matter to the assembly programmer. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * ELF: handle more than 32,633 sectionsH. Peter Anvin2019-02-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dead code elimination in ELF uses separate ELF sections for every functions or data items that may be garbage collected. This can end up being more than 32,633 sections which, when the ELF internal and relocation sections are added in, can exceed the legacy ELF maximum of 65,279 sections. Newer versions of the ELF specification has added support for much larger number of sections by putting a place holder value (usually SHN_XINDEX == 0xffff, but 0 in some cases) into fields where the section index is a 16-bit value, and storing the full value in a diffent place: the program header uses entries in section header 0, the symbol table uses an auxiliary segment with the additional indicies; the section header did not need it as the sh_link field is already 32 (or 64) bits long. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * ELF: add support for the ELF "merge" attributeH. Peter Anvin2018-12-302-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the "merge" attribute in ELF, along with the associated "strings" and size specifier attributes. Fix a few places where we used "int", but a larger type really ought to have been used. Be a bit more lax about respecifying attributes. For example, align= can be respecified; the highest resulting value is used. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | warnings: add [warning push] and [warning pop]H. Peter Anvin (Intel)2019-01-112-0/+10
| | | | | | | | | | | | Add [warning push] and [warning pop] directives. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | Merge tag 'nasm-2.14.03rc1'H. Peter Anvin2018-12-271-0/+5
|\ \ | |/ | | | | | | | | | | | | | | | | NASM 2.14.03rc1 Resolved Conflicts: asm/labels.c include/error.h Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * changes.src: document suppressed messagesH. Peter Anvin2018-12-271-0/+5
| | | | | | | | | | | | Document the suppression of error messages from "label changed". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge tag 'nasm-2.14.02'H. Peter Anvin2018-12-261-0/+5
|\ \ | |/ | | | | | | | | | | NASM 2.14.02 Resolved Conflicts: asm/listing.c
| * changes.src: document fix for listing module crashH. Peter Anvin2018-12-261-0/+5
| | | | | | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge tag 'nasm-2.14.01rc5'H. Peter Anvin (Intel)2018-12-142-17/+27
|\ \ | |/ | | | | | | | | | | | | | | NASM 2.14.01rc5 Resolved Conflicts: asm/labels.c asm/nasm.c version
| * Document the -Ov option, minor fix for gcc -OgH. Peter Anvin (Intel)2018-12-141-1/+6
| | | | | | | | | | | | | | | | | | The -Ov option is useful but was undocumented. Add an initialization to keep gcc from complaining at optimization level -Og. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * --no-line: new option to ignore %line directivesH. Peter Anvin (Intel)2018-12-142-16/+21
| | | | | | | | | | | | | | For debugging preprocessed code, it is useful to be able to ignore %line directives rather than having to filter them out externally. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | warnings: define warning classes at point of usemkwarningsH. Peter Anvin (Intel)2018-12-132-77/+2
|/ | | | | | | | | | | | It is extremely desirable to allow the user fine-grained control of warnings, but this has been complicated by the fact that a warning class has had to be defined in no less than three places (error.h, error.c, nasmdoc.src) before it can be used in source code. Instead, use a script to define these via magic comments at the point of use. This hopefully will encourage creating new classes as needed. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* changes.src: update list of changes since 2.14H. Peter Anvin2018-12-101-0/+6
|
* nasm: fix the combination -E -MD, handle -MD without a filenameH. Peter Anvin2018-11-282-0/+15
| | | | | | | | -E -MD should work and output a dependency file. -MD can be used without a filename; there is a default filename or -\c{-MF} can be used. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* changes.src: fp bug: there are probably other corner casesH. Peter Anvin2018-11-281-4/+3
| | | | | | | | There are probably other corner cases where we could at the very least produce an incorrectly rounded result, so be a bit more cagey about the description of the bug. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* BR 3392368: actually fix the documentation; add test caseH. Peter Anvin2018-11-261-5/+5
| | | | | | Add a mimimal test case for this bug; correct the documentation. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Correctly document the BR 3392368 fix, add test caseH. Peter Anvin2018-11-261-3/+4
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* changes.src: document more fixesH. Peter Anvin2018-11-261-0/+9
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* preproc: command-line preproc directive after system-generatedH. Peter Anvin2018-11-112-4/+23
| | | | | | | | | | | | | | | | | | BR 3392527: make sure that all command-line specified preprocessing directives are processed after the system-generated ones. In particular __OUTPUT_FORMAT__ was generated after command line pass 2, at which point -p, -d, -u, --pragma and --before had already been processed. There is no reason to split up defined_macros() anymore: the right place to execute it is simply between command line passes 1 and 2. We can also set dfmt here, which lets us define a __DEBUG_FORMAT__ macro as well. Finally move some options that have no business being processed in pass 2 to pass 1. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* nasmdoc.src: fix compound wordH. Peter Anvin (Intel)2018-11-071-2/+2
|
* doc: Add a description for a useful case of mangling symbolsChang S. Bae2018-10-301-3/+15
| | | | Signed-off-by: Chang S. Bae <changseok.bae@gmail.com>
* doc: Clarify %include search directory semanticsCyrill Gorcunov2018-10-262-11/+7
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc: Update changesCyrill Gorcunov2018-10-211-0/+2
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc: Update changesCyrill Gorcunov2018-10-141-0/+4
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc: Update changesCyrill Gorcunov2018-10-131-0/+2
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc: Update changesCyrill Gorcunov2018-10-131-0/+2
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* pspdf.pl: GhostScript font integration seems broken with -dSAFERH. Peter Anvin2018-09-241-5/+25
| | | | | | | | | -dSAFER seems to break font integration on some systems. Furthermore, once given -dSAFER seems to not be possible to override, so instead of calling via the ps2pdf script, call GhostScript explicitly with the equivalent options, sans -dSAFER. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: changes -- Add a few more bulletsCyrill Gorcunov2018-09-231-0/+6
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc: Fix macho section name for codeChang S. Bae2018-08-241-1/+1
| | | | | | | | While today's manual lists "text" as the code section name, "code" has been effectively named from d1da074. Reported-by: <zenith432@users.sourceforge.net> Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
* optimization: Introduce new flag to turn-off selectivelyChang S. Bae2018-08-161-2/+4
| | | | | | | | | | | | While configuring optimization in a level is conventional, a certain optimization tends to conflict with some pragma. For example, jump match conflicts with Mach-O's "subsections-via-symbols" macro. This configurability will workaround such conflicts. Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
* doc/rdsrc.pl: fix unescaped braceH. Peter Anvin (Intel)2018-06-251-2/+2
| | | | | | | | The latest version of Perl complains about an unescaped brace in a regexp and states that it will be a fatal error in Perl 5.30. Fix it now before it becomes a problem. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: add a few more updatesH. Peter Anvin (Intel)2018-06-252-22/+22
| | | | | | In particular, document the new behavior of EXTERN, GLOBAL and COMMON. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* changes.src: cleanup and fixesH. Peter Anvin (Intel)2018-06-251-15/+17
| | | | | | | Clean up the language somewhat, and fix a couple of confusing statements. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: 2.14 change logChang S. Bae2018-06-252-1/+48
| | | | | Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: document new feature from version 2.14Chang S. Bae2018-06-251-6/+139
| | | | | | | | | Added descriptions about new commandline options, STATIC directive, symbol mingling, and some output format specifics. Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>