summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* changes.src: update with the 2.08.xx changesnasm-2.08.xxH. Peter Anvin2010-07-151-0/+10
| | | | | | Patchlevels should be documented, too... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NASM 2.08.02nasm-2.08.02Cyrill Gorcunov2010-07-101-1/+1
|
* preproc.c: Fix NULL deref on token pastingCyrill Gorcunov2010-07-101-1/+3
| | | | | | | | | | | In case if there is a whitespace before 'paste' token we may reach NULL dereference in strlen since paste_head will point to TOK_WHITESPACE. Fix it. [mainstream adabc1576b957fc7d929d2c7e749b4f45f7293aa] Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.08.01nasm-2.08.01Victor van den Elzen2010-03-101-1/+1
|
* preproc.c: Fix regression introduced in bebf0d215Victor van den Elzen2010-03-101-1/+1
|
* NASM 2.08nasm-2.08Cyrill Gorcunov2010-03-101-1/+1
|
* doc/changes.src: Restore empty line.Cyrill Gorcunov2010-03-031-0/+1
| | | | | | | Due to previous commit empty line was occasionally removed which make text harder to read. Restore it. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Update doc/changes.srcCyrill Gorcunov2010-03-031-0/+1
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* misc/tag-release: Make it usable for remote reposCyrill Gorcunov2010-03-031-4/+21
| | | | | | | | | | | | | | | | | | | | | | In case if the commiter has a main repo configured as remote one and also has various tags (and don't want to push every tag he has out to the main repo) he may use misc/tag-release new functionality. For example I have NASM remote repo as well known git://repo.or.cz/nasm.git and a number of my own local tags/branches which I would like to not sprinkle into a master repo. So to make a release (say 2.08) I may just type misc/tag-release 2.08 git+ssh://xxx@repo.or.cz/srv/git/nasm.git master and this command will push master branch into main repo with "nasm-2.08" tag. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.08rc10nasm-2.08rc10Cyrill Gorcunov2010-03-011-1/+1
| | | | | | | | | We decided to defer recursive macro support for now. Hope this is the last RC before 2.08 final release. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* preproc.c: Turn off rmacro,exitmacro supportCyrill Gorcunov2010-02-283-33/+43
| | | | | | | | | | | | | | We've a problem in supporting [i]rmacro, exitmacro facilities at moment. In a sake of not holding new NASM release any longer these directives are just marked as being "forbidden". This allow us to not squash much changes in current source code base but remain on a safe side same time. Reviewed-by: Keith Kanios <keith@kanios.net> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* phash.ph: we haven't required the Graph module for a long timeH. Peter Anvin2010-02-181-2/+0
| | | | | | | We removed the need for the Graph module back at checkin c593173e110244f99a3498cb3e23d6c3c07bae35 in 2008. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* labels.c: Fix NULL dereference on too long identifiersCyrill Gorcunov2010-02-181-1/+10
| | | | | | | | | | In case if label is local and exceed maximum allowed length we get NULL dereference. Fix it and warn a user about an accident. Note that we don't print identifier itself since we know it's too big. Line number of error is enough. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Revert "doc/nasmdoc.src: Get rid of id length restriction"Cyrill Gorcunov2010-02-171-1/+2
| | | | | | | | | | This reverts commit 3012d5d430b64273b83f4b5890719d34e441a18c. nasm64developer pointed out that we still have this limit in label.c (IDLEN_MAX). Reported-by: nasm64developer Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* preproc.c: Eliminate parasite comment on PP_STACKSIZECyrill Gorcunov2010-02-171-3/+0
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* preproc.c: Fix tab\space messCyrill Gorcunov2010-02-171-1076/+1088
| | | | | | | | | | | It's really hard to read the code which is terribly messed in tabs\spaces. Fix it all at once. It's dirty work but has to be done once. No change on binary level. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc/nasmdoc.src: Get rid of id length restrictionCyrill Gorcunov2010-02-171-2/+1
| | | | | | | | We always allocate enough memory to hold identifiers with any length. So lets remove restriction from documentation. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc/nasmdoc.src: Point to the correct license fileCyrill Gorcunov2010-02-171-1/+1
| | | | | | There is no "COPYING" but "LICENSE" file. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc/nasmdoc.src: It's 2010 alreadyCyrill Gorcunov2010-02-171-3/+3
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.08rc9nasm-2.08rc9H. Peter Anvin2010-02-151-1/+1
|
* doc/changes.src: update in preparation of 2.08 releaseH. Peter Anvin2010-02-151-1/+7
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* preproc.c: Fix SIGSEV on missed %endmCyrill Gorcunov2010-02-141-0/+1
| | | | | | | | | In case if EOF is reached (or due to any other case pp_cleanup is being called) we do free "defining" macro but forgot to set pointer to NULL itself which leads to attempt to free memory again for this macro on further pp_cleanup calls.
* preproc.c: Fix NULL dereference on package absenceCyrill Gorcunov2010-02-121-4/+4
| | | | | | | | | If package can't be retrieved we should not attempt to dereference NULL'ed pointer which leads to segmentation fault. Reported-by: Serge Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.08rc8nasm-2.08rc8Cyrill Gorcunov2010-02-111-1/+1
|
* output/outbin.c: Fix misprinted alignment boundCyrill Gorcunov2010-02-111-1/+1
| | | | | | | Due to a misprint in commit 9b66d8e4c3030474a75e598f699eccc118a3d651 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* expand_smacro: Don't search for ID in global contextCyrill Gorcunov2010-02-111-6/+6
| | | | | | | | | | | | | | | | | | | | The corner case is the code like %define foo 1 %push bar %$foo: %pop for which v2.07 ends up with "foo = 1" while 0.98.39 issue an error. hpa said that ideally we may need to create a context structure for the global context but this seems to be too agressive for 2.08. Based on patch from nasm64developer Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Elf: Drop useless SEG_ALIGN_1Cyrill Gorcunov2010-02-111-1/+0
| | | | | | | No need for SEG_ALIGN_1 since we have switched to ALIGN helper. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Use ALIGN helperCyrill Gorcunov2010-02-117-27/+19
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* nasmlib.h: Introduce ALIGN helpersCyrill Gorcunov2010-02-111-0/+7
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* preproc.c: Use 16 byte offset in "flat64" stack modelPer Jessen2010-02-111-1/+1
| | | | | | | | | The first argument passed on stack with "flat64" stack model (stack frame with base pointer) should be pointed by [rbp + 16]. Signed-off-by: Per Jessen <per@computer.org> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc/nasmdoc.src: Delete misplaced "point" signCyrill Gorcunov2010-02-101-1/+1
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* contrib/MSVC6.txt: Add guide how to use nasm in MSVC6Alexander Ilyin2010-01-241-0/+25
| | | | | | | | It's possible to use nasm as asm compiled right within MSVC6 IDE. Lets point it out via a small guide. Signed-off-by: Alexander Ilyin <dragity@mail.ru> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* nasmlib.c: Use UINT64_C for 64bit constantsCyrill Gorcunov2010-01-241-2/+2
| | | | | | | | | | In a sake of portability we should better use UINT64_C instead of open-coded ULL postfix. [ BR2938449 ] Reported-by: Alexander Ilyin <dragity@mail.ru> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.08rc7nasm-2.08rc7H. Peter Anvin2010-01-121-1/+1
|
* nasm.c: Restore strings broken by `indent`Cyrill Gorcunov2010-01-091-30/+14
| | | | | | | | | | | | A number of strings are broken by nindent passed over the nasm.c. Though the compiler doesn't care about this fact it's really unpleasant to have a string split at "dot" symbol. Lets restore it in a sake of readability. (No change on binary level) Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* README: add note to see the AUTHORS fileH. Peter Anvin2010-01-061-1/+2
|
* insns.dat: in 64-bit mode, accept "monitor rax,ecx,edx".H. Peter Anvin2010-01-061-0/+1
| | | | | | | | | The first argument to MONITOR is an address, so it should be 64 bits (RAX) in 64-bit mode. The preferred form is still just plain "monitor". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Mkfiles: Add depends on stabs.h for Elf outputCyrill Gorcunov2010-01-034-14/+14
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc/changes.src: Update changesCyrill Gorcunov2010-01-031-1/+10
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* ELF: Explicitly point out SYM_GLOBAL, SYM_LOCAL bindingCyrill Gorcunov2010-01-033-5/+7
| | | | | | | | Instead of implicit declaration of global symbols obtained by STB_GLOBAL << 4, and local symbols by STB_LOCAL << 4 use ELF32_ST_MKBIND helpers. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* elf.h: Add ELFXX_ST_MKBIND and move ELFXX_ST_ helpersCyrill Gorcunov2010-01-031-8/+11
| | | | | | | | The profit of ELFXX_ST_MKBIND helper is that we will use it for SYM_GLOBAL explicitly pointing out from where this magic 0x10 came from. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* output/outelfX.c: Use definitions from stabs.hCyrill Gorcunov2010-01-034-16/+6
| | | | | | | | Also made Makefile.in to handle dependency. There are some makefiles in Mkfiles\ should be fixed as well. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Add common STABs definition into output/stabs.hCyrill Gorcunov2010-01-031-0/+145
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* outelfX.c: Trivial cleanupCyrill Gorcunov2010-01-032-231/+231
| | | | | | | | | Some tab\space convertions together with trivial style nitfix. No change on binary level. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* BR2924380: Add AMD LWP instructionsCyrill Gorcunov2010-01-031-0/+20
| | | | | | | | nasm64developer reported that we have no LWP support yet. Add this feature. Reported-by: nasm64developer <nasm64developer@users.sf.net> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* BR2924383: fix XOP instructionsCyrill Gorcunov2010-01-031-4/+10
| | | | | | | | | | nasm64developer reported a few nits in XOP instruction templates. Plain typo in specification (http://support.amd.com/us/Processor_TechDocs/43479.pdf) and opcode errors. Reported-by: nasm64developer <nasm64developer@users.sf.net> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* BR2924583: fix FMA4 instructionsCyrill Gorcunov2010-01-031-2/+2
| | | | | | | | | nasm64developer reported that VFNMADDSD and VFNMADDSS have "m" and "s" operands swapped in instruction templates file. Reported-by: nasm64developer <nasm64developer@users.sf.net> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Elf: Allow symbols binding to undefined sectionCyrill Gorcunov2010-01-022-8/+4
| | | | | | | | | Commit 2ddcd03900d134772e98acf8cab17a12cc0c3f2a did bind symbols (in case of omitted SECTION directive) to .text section but break COMMON binding. Fix it. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* doc/nasmdoc.src: Update the number of sync points in docsCyrill Gorcunov2009-12-221-1/+1
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* sync.c: Get sync points limit backCyrill Gorcunov2009-12-221-7/+13
| | | | | | | | | | We should explicitly check if we can hold the sync point, otherwise we may wrap the array index and reach incorrect value (if we're lucky). So instead we make the index "almost" unlmited. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>