[AOT] Use `.short` directive instead of `.hword` (#64561)
authorMarek Habersack <grendel@twistedcode.net>
Tue, 1 Feb 2022 17:44:50 +0000 (17:44 +0000)
committerGitHub <noreply@github.com>
Tue, 1 Feb 2022 17:44:50 +0000 (18:44 +0100)
commit790784c435e1319ff7c0e0df345bd8b0f2702858
tree6c79fc3310ee1ade805f3245edfd20f5a8762993
parentda7f377219520ecdfc786f34e32862a7532187f4
[AOT] Use `.short` directive instead of `.hword` (#64561)

Xamarin.Android is trying to (partially) switch to LLVM-based toolchain
and it appears that the `llvm-mc` assembler doesn't accept `.hword` as a
valid directive for x86 targets.  Since it's an alias for `.short`,
which works fine, the change should be safe across all the architectures
supported by AOT.
src/mono/mono/mini/image-writer.c