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:
authorZoltan Varga <vargaz@gmail.com>2013-07-15 22:09:45 +0400
committerZoltan Varga <vargaz@gmail.com>2013-07-15 22:55:41 +0400
commit96f89ed2e5cba482d851e796c4734c0715c49c38 (patch)
tree60f350d3863fb86848a3b416c7660348056f0502
parent74639ebf72c6d4efed5c1dfe98d6118828b396df (diff)
Put the unbox_trampolines table into the .text segment instead of .rodata on mt since it contains code.mono-3.1.2
-rw-r--r--mono/mini/aot-compiler.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
index 52a35f3a8ce..5cd088bd3a5 100644
--- a/mono/mini/aot-compiler.c
+++ b/mono/mini/aot-compiler.c
@@ -7004,7 +7004,10 @@ emit_code (MonoAotCompile *acfg)
/* Emit a sorted table mapping methods to their unbox trampolines */
sprintf (symbol, "unbox_trampolines");
- emit_section_change (acfg, RODATA_SECT, 1);
+ if (acfg->direct_method_addresses)
+ emit_section_change (acfg, ".text", 0);
+ else
+ emit_section_change (acfg, RODATA_SECT, 0);
emit_alignment (acfg, 8);
emit_label (acfg, symbol);