Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Habersack <grendel@twistedcode.net>2022-02-01 20:44:28 +0300
committerGitHub <noreply@github.com>2022-02-01 20:44:28 +0300
commit62c38ed74cc91c826a720d01f955a2db7b06fb6c (patch)
treeaea2bd20b3f25730683266a40bbfbcc50f15763f
parent04859508c54a7ac25547bc5bcf4a019f0517aa0b (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.c2
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