dongsheng zhang <dongsheng.zhang(a)oracle.com> writes:
> Solaris doesn't take .short value, but instead only takes .value value.
> We thus cannot compile the following file:
> nettle-3.1/x86_64/gcm-hash8.asm
I see. From some testing, it seems that GNU as treats all of .short,
.word, .value and .2byte as aliases, defining 16-bit constants.
We currently use .short, and that breaks x86_64 builds using the
Sun/Oracle assembler. Does anyone know which of ".word", ".value" and
".2byte" is more portable (.value sounds very unspecific to me)? I'd
prefer to use a pseudo op supported by all relevant x86_64 assemblers,
and not have to add a configure test for this.
I think the relevant assemblers are GNU as (including older versions),
Sun/Oracle as, and the assembler used with clang on freebsd.
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.