anonymous tickets disabled?

Tomas Carnecky tom at dbservice.com
Mon Mar 26 16:14:18 PDT 2007


Can't create one.. anyway:

Older versions of yasm (<0.4.0) spit out a warning when trying to compile

    imul rdx,rsi

when no "BITS 64" is specified in the source file and "yasm -m amd64 -f
elf" commandline is used:

    warning: `rdx' is a register in 64-bit mode

Newer versions (I'm using 0.6.0) don't do that. The yasm man page and
possibly all related documentation need to be updated. This is taken
from my yasm man page:

''
When using the "x86" architecture, it is overly easy to generate AMD64
code (using the BITS 64 directive) and generate a 32-bit object file (by
failing to specify -m amd64 or selecting a 64-bit object format such as
ELF64 on the command line). Similarly, specifying -m amd64 does not
default the BITS setting to 64. An easy way to avoid this is by directly
specifying a 64-bit object format such as -f elf64.
''

Since yasm doesn't generate that warning anymore, it's confusing whether
yasm now automatically enables 64bit mode when '-m amd64' is used or
whether the waning has simply been removed and 'BITS 64' is still needed.

tom


More information about the yasm-devel mailing list