Skip to content

Commit

Permalink
[mono] Fix full aot compilation on android+x86. (#52816)
Browse files Browse the repository at this point in the history
Fixes #50493.
  • Loading branch information
vargaz authored May 15, 2021
1 parent 7db5438 commit 6430375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/mono/mono/metadata/marshal-ilgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,7 @@ emit_invoke_call (MonoMethodBuilder *mb, MonoMethod *method,
case MONO_TYPE_CLASS:
case MONO_TYPE_ARRAY:
case MONO_TYPE_PTR:
case MONO_TYPE_FNPTR:
case MONO_TYPE_SZARRAY:
case MONO_TYPE_OBJECT:
mono_mb_emit_byte (mb, mono_type_to_ldind (sig->params [i]));
Expand Down
4 changes: 2 additions & 2 deletions src/mono/mono/mini/mini-x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -6312,8 +6312,8 @@ mono_arch_emit_load_got_addr (guint8 *start, guint8 *code, MonoCompile *cfg, Mon
*ji = mono_patch_info_list_prepend (*ji, code - start, MONO_PATCH_INFO_GOT_OFFSET, NULL);
x86_pop_reg (code, MONO_ARCH_GOT_REG);
x86_alu_reg_imm (code, X86_ADD, MONO_ARCH_GOT_REG, 0xf0f0f0f0);

set_code_cursor (cfg, code);
if (cfg)
set_code_cursor (cfg, code);
return code;
}

Expand Down

0 comments on commit 6430375

Please sign in to comment.