Re: bug against .short value
Niels Möller <nisse@...
2015-04-21 17:30:01 GMT
dongsheng zhang <dongsheng.zhang@...> writes:
> Solaris doesn't take .short value, but instead only takes .value value.
> We thus cannot compile the following file:
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.
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.