mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
3c72a1b3b3
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> |
||
---|---|---|
.. | ||
metrics | ||
afmmetrics.pl | ||
changes.src | ||
genps.pl | ||
genpsdriver.pl | ||
head.ps | ||
inslist.pl | ||
internal.doc | ||
makedocs.bat | ||
Makefile.in | ||
nasmdoc.src | ||
nasmlogo.eps | ||
opt_var.txt | ||
psfonts.ph | ||
pswidth.ph | ||
rdsrc.pl |