Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[AOT] Use .short directive instead of .hword
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.
  • Loading branch information
grendello authored and github-actions committed Feb 1, 2022
commit 0cddc48c55ee70d14e613333a9126b23dfc7b8d7
2 changes: 1 addition & 1 deletion src/mono/mono/mini/image-writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,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
Expand Down