[AOT] Use `.short` directive instead of `.hword` (#64637)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 7 Feb 2022 20:18:33 +0000 (12:18 -0800)
committerGitHub <noreply@github.com>
Mon, 7 Feb 2022 20:18:33 +0000 (12:18 -0800)
commit39f85a4628c246468bb54156a05033a19b5bab4c
tree1c149c13bdfb2cf1d42708dc81169252de06706e
parent8f7dff32974a6d387e3b99e95f522ee9377e6e15
[AOT] Use `.short` directive instead of `.hword` (#64637)

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.

Co-authored-by: Marek Habersack <grendel@twistedcode.net>
src/mono/mono/mini/image-writer.c