diff options
-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); |