提交 71a50e1c 编写于 作者: M Mantas Puida

[iOS] make AOT code PIC compatible

上级 16d96d64
......@@ -4346,8 +4346,14 @@ emit_code (MonoAotCompile *acfg)
emit_method_code (acfg, acfg->cfgs [i]);
}
sprintf (symbol, "methods_end");
emit_section_change (acfg, ".text", 0);
emit_global (acfg, symbol, FALSE);
emit_alignment (acfg, 8);
emit_label (acfg, symbol);
sprintf (symbol, "method_addresses");
emit_section_change (acfg, ".text", 1);
emit_section_change (acfg, ".data", 1);
emit_global (acfg, symbol, FALSE);
emit_alignment (acfg, 8);
emit_label (acfg, symbol);
......@@ -4365,12 +4371,6 @@ emit_code (MonoAotCompile *acfg)
}
}
sprintf (symbol, "methods_end");
emit_section_change (acfg, ".text", 0);
emit_global (acfg, symbol, FALSE);
emit_alignment (acfg, 8);
emit_label (acfg, symbol);
sprintf (symbol, "method_offsets");
emit_section_change (acfg, ".text", 1);
emit_global (acfg, symbol, FALSE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册