From 96f89ed2e5cba482d851e796c4734c0715c49c38 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Mon, 15 Jul 2013 20:09:45 +0200 Subject: Put the unbox_trampolines table into the .text segment instead of .rodata on mt since it contains code. --- mono/mini/aot-compiler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3