diff options
author | Zoltan Varga <vargaz@gmail.com> | 2013-07-15 22:09:45 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2013-07-15 22:55:41 +0400 |
commit | 96f89ed2e5cba482d851e796c4734c0715c49c38 (patch) | |
tree | 60f350d3863fb86848a3b416c7660348056f0502 | |
parent | 74639ebf72c6d4efed5c1dfe98d6118828b396df (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.c | 5 |
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); |