Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created October 27, 2011 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolfbjarne/924cf21eb19aafce003c to your computer and use it in GitHub Desktop.
Save rolfbjarne/924cf21eb19aafce003c to your computer and use it in GitHub Desktop.
diff --git a/mono/mini/aot-runtime.c b/mono/mini/aot-runtime.c
index 5f76ca7..d832da3 100644
--- a/mono/mini/aot-runtime.c
+++ b/mono/mini/aot-runtime.c
@@ -2518,6 +2518,7 @@ load_method (MonoDomain *domain, MonoAotModule *amodule, MonoImage *image, MonoM
}
code = &amodule->code [amodule->code_offsets [method_index]];
+ code = amodule->code_offsets [method_index];
info = &amodule->blob [mono_aot_get_offset (amodule->method_info_offsets, method_index)];
diff --git a/mono/mini/image-writer.c b/mono/mini/image-writer.c
index 2405959..04a8f93 100644
--- a/mono/mini/image-writer.c
+++ b/mono/mini/image-writer.c
@@ -1993,7 +1993,8 @@ asm_writer_emit_symbol_diff (MonoImageWriter *acfg, const char *end, const char*
char symbol [128];
sprintf (symbol, ".LDIFF_SYM%d", acfg->label_gen);
acfg->label_gen ++;
- fprintf (acfg->fp, "\n%s=%s - %s", symbol, end, start);
+// fprintf (acfg->fp, "\n%s=%s - %s", symbol, end, start);
+ fprintf (acfg->fp, "\n%s=%s", symbol, end);
fprintf (acfg->fp, "\n\t%s ", AS_INT32_DIRECTIVE);
fprintf (acfg->fp, "%s", symbol);
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment