mono --aot 与 MinGW:未知伪操作:`.local'

发布于 2024-08-28 03:43:33 字数 1358 浏览 10 评论 0原文

  1. 我可以使用 mono 的 AOT 功能来本机“预编译”.NET DLL(和/或 EXE),以使它们更难进行逆向工程吗?

  2. 如果是这样,我如何让 mono/AOT 在 Windows 7 中工作? (我正在运行 x64,但该应用程序明确针对 x86。)我刚刚安装了 Mono 2.6.3 和 MinGW 5.1.6,我正在尝试 AOT 编译 exe(或 dll,这并不重要)。< /p>

我收到错误消息的屏幕和屏幕:

C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:533: Error: junk at end of line, first unrecognized character is `H'
C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:539: Error: unknown pseudo-op: `.local'
C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:546: Warning: .size pseudo-op used outside of .def/.endef ignored.
C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:546: Error: junk at end of line, first unrecognized character is `H'

我可以打开生成的汇编代码,但我不知道为什么汇编程序会卡住:(

    .size HappyForms_TextForm__ctor_string_string_string_bool,.-HappyForms_TextForm__ctor_string_string_string_bool   (533)
_.Lme_a:
.Lme_a:
    .balign 16
_.Lm_b:
.Lm_b:
    .local HappyForms_TextForm_get_InputValue       (539)
_HappyForms_TextForm_get_InputValue:
HappyForms_TextForm_get_InputValue:

    .byte 85,139,236,131,236,8,139,69,8,139,128,216,2,0,0,131,236,12,80,139,0,144,144,144,255,144,200,2,0,0,131,196
    .byte 16,201,195

    .size HappyForms_TextForm_get_InputValue,.-HappyForms_TextForm_get_InputValue (546)

上面括号中的数字是行号)

  1. Can I user mono's AOT feature to natively "pre-compile" .NET DLLs (and or EXEs) to make them harder to reverse engineer?

  2. If so, how do I get mono/AOT working in Windows 7? (I'm running x64 but the app is targeting x86 explicitly.) I just installed Mono 2.6.3 and MinGW 5.1.6 and I'm trying to AOT compile an exe (or a dll, it doesn't matter).

I get screens and screens of error messages:

C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:533: Error: junk at end of line, first unrecognized character is `H'
C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:539: Error: unknown pseudo-op: `.local'
C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:546: Warning: .size pseudo-op used outside of .def/.endef ignored.
C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:546: Error: junk at end of line, first unrecognized character is `H'

I can open the generated assembly code but I have no idea why the assembler chokes on it:

    .size HappyForms_TextForm__ctor_string_string_string_bool,.-HappyForms_TextForm__ctor_string_string_string_bool   (533)
_.Lme_a:
.Lme_a:
    .balign 16
_.Lm_b:
.Lm_b:
    .local HappyForms_TextForm_get_InputValue       (539)
_HappyForms_TextForm_get_InputValue:
HappyForms_TextForm_get_InputValue:

    .byte 85,139,236,131,236,8,139,69,8,139,128,216,2,0,0,131,236,12,80,139,0,144,144,144,255,144,200,2,0,0,131,196
    .byte 16,201,195

    .size HappyForms_TextForm_get_InputValue,.-HappyForms_TextForm_get_InputValue (546)

(numbers above in parens are line numbers)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迎风吟唱 2024-09-04 03:43:33

这看起来并不能解决我的问题,而且目前 Windows 上也不支持单声道 AOT。请参阅此问题了解更多信息。

It doesn't look like this will solve my problem and it also doesn't look like mono AOT is supported on Windows at this time. See this question for more info.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文