diff options
author | Marek Habersack <grendel@twistedcode.net> | 2022-02-01 20:44:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 20:44:28 +0300 |
commit | 62c38ed74cc91c826a720d01f955a2db7b06fb6c (patch) | |
tree | aea2bd20b3f25730683266a40bbfbcc50f15763f | |
parent | 04859508c54a7ac25547bc5bcf4a019f0517aa0b (diff) |
[AOT] Use .short directive instead of .hword (#21416)
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.
-rw-r--r-- | mono/mini/image-writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/mini/image-writer.c b/mono/mini/image-writer.c index 97d1a042c0f..fed7850e15b 100644 --- a/mono/mini/image-writer.c +++ b/mono/mini/image-writer.c @@ -97,7 +97,7 @@ #elif defined(TARGET_ASM_GAS) && defined(TARGET_WIN32) #define AS_INT16_DIRECTIVE ".word" #elif defined(TARGET_ASM_GAS) -#define AS_INT16_DIRECTIVE ".hword" +#define AS_INT16_DIRECTIVE ".short" #else #define AS_INT16_DIRECTIVE ".word" #endif |