Knut St. Osmundsen 3c72a1b3b3 Add option to allow 64-bit code in any output format
Add the option --allow-64-bit to permit the generation of 64-bit code
even for a 16/32-bit output format.

Using NASM to do some boot strapping code and ran into trouble when
trying to emit a few 64-bit instructions in the OMF object file doing
the mode switching.  While I can see how the "error: obj output format
does not support 64-bit code" message can be a useful reality check
for application programmers, it prevents low-level programmers from
doing what they want.  It if was just a harmless warning, it wouldn't
be so bad, but it turns BITS 64 into BITS 16. The main trick to mixing
64-bit code into OMF and other 32-bit output formats is to avoid
64-bit sized fixups, which normally isn't too hard.

[hpa: shortened the option name to --allow-64-bit, minor code cleanups]

Signed-off-by: Knut St. Osmundsen <bird-nasm@anduin.net>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2016-01-26 12:34:41 -08:00
2010-04-25 12:02:38 +04:00
2014-05-09 22:22:34 +04:00
2014-05-21 08:30:40 -07:00
2010-11-07 17:31:27 +01:00
2014-11-25 12:14:52 -08:00
2010-06-15 10:47:16 -07:00
2013-06-30 01:31:15 +04:00
2015-11-05 01:16:09 +03:00
2010-04-22 11:02:56 -07:00
2015-09-13 16:30:21 +03:00
2014-11-25 12:14:52 -08:00
2010-07-28 18:00:18 +04:00
2010-08-12 20:15:27 -07:00
2016-01-24 14:14:00 +03:00
2016-01-24 14:14:00 +03:00
2014-10-16 16:31:31 -07:00
2011-07-15 23:13:26 +04:00
2013-04-20 20:24:01 +04:00
2016-01-24 14:12:56 +03:00
2014-05-09 22:22:34 +04:00
2010-11-07 17:20:23 +01:00
2013-06-30 01:31:15 +04:00
2014-10-21 12:50:47 -07:00
2013-12-04 20:10:08 -08:00
2013-09-21 13:14:15 +04:00
2010-10-03 21:02:08 +04:00
2016-01-26 12:04:49 -08:00

              NASM, the Netwide Assembler.

Many many developers all over the net respect NASM for what it is
- a widespread (thus netwide), portable (thus netwide!), very
flexible and mature assembler tool with support for many output
formats (thus netwide!!).

Now we have good news for you: NASM is licensed under the "simplified"
(2-clause) BSD license.  This means its development is open to even
wider society of programmers wishing to improve their lovely
assembler.

The NASM project is now situated at SourceForge.net, the most
popular Open Source development site on the Internet.

Visit our website at http://nasm.sourceforge.net/ and our
SourceForge project at http://sourceforge.net/projects/nasm/

See the file CHANGES for the description of changes between revisions,
and the file AUTHORS for a list of contributors.

                                                   With best regards,
                                                           NASM crew.
Description
No description provided
Readme BSD-2-Clause 10 MiB
Languages
Assembly 61.7%
C 31.7%
Perl 3.2%
Makefile 0.8%
M4 0.7%
Other 1.9%