objdump ELF 和 Windows

发布于 2024-09-13 20:45:06 字数 285 浏览 4 评论 0原文

我对这个主题相当陌生,即 ELF 和任何与 Linux 相关的东西。我正在尝试编写 ELF 文件,并且更喜欢在 WinXP 上执行此操作。

我的问题是,这可以用 MS Visual Studio 完成,包括编译吗?据我了解,ELF文件不能在Windows操作系统上编译。好吧,至少这是我在谷歌研究中发现的。 我必须安装 Linux 操作系统并在那里进行编译吗?

我可以使用 objdumo(GNU binutils 的一部分)来分析 WindowsXP 上的任何 ELF 文件吗?

非常感谢任何帮助和链接。

I am fairly new to this subject, that is ELF and any Linux related stuff. I am trying to write an ELF file and would prefer to do it on WinXP.

My question is, can this be done with MS Visual Studio including the compilation? As far as my understanding goes, ELF files can not be compiled on Windows OSs. Well, at least that's what my Google research discovered to me.
Do I have to setup a Linux OS and compile it there?

Can I use the objdumo (part of GNU binutils) to analyze any ELF file on WindowsXP?

Any help and links are very appreciated.

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

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

发布评论

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

评论(2

花想c 2024-09-20 20:45:06

可以将 Visual Studio IDE 与从自定义构建步骤调用的其他工具一起使用。 但是,我不建议为非 Microsoft 的其他平台编译二进制文件。

您可以安装 Cygwin (使用 gcc/g++)来编译 ELF 二进制文件并配置 Eclipse 使用它们。您可能会在此线程上。

It may be possible to use the Visual Studio IDE with other tools invoked from custom build steps. However, I would not recommend doing it to compile binaries for other platforms that are not Microsoft based.

You could install Cygwin (with gcc/g++) to compile ELF binaries and configure Eclipse to use them. You might find some tips on how to do this on this thread.

捶死心动 2024-09-20 20:45:06

请查看ELFIO 库。它包含 WriteObj 和 Writer 示例。通过使用该库,您将能够在 Windows 上创建 ELF 二进制文件,并在能够运行它的其他操作系统上运行它们。

Please look at ELFIO library. It contains WriteObj and Writer examples. By using the library, you will be able to create ELF binary files on Windows and run them on other OSes that are able to operate it.

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