创建ELF图像

发布于 2024-12-09 03:28:37 字数 127 浏览 1 评论 0原文

我需要从共享对象(.so 文件)创建 ELF 映像文件并将其写入 Windows 中的另一个分区。然后在Linux中打开这个分区并加载共享对象。

有谁知道如何在 Windows 中创建 ELF 映像(许多共享对象的捆绑包)?

I need to create an ELF image file from shared objects (.so files) and write it to another partition in Windows. Then open this partition in Linux and load the shared objects.

Does anybody know how to create an ELF image (a bundle of many shared objects) in Windows?

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

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

发布评论

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

评论(2

二智少女猫性小仙女 2024-12-16 03:28:37

You can use Cygwin and try a suitable GCC cross-toolchain. Perhaps you'll have to build it yourself first (which is troublesome), but there it goes...

EDIT:
Okay, here you are:

A simplified one:
Building GCC cross compiler (from "Linux" to "Windows") -- the basic steps are the same as described there. You'll just need to ./configure it with relevant --host=... and --target=.... And oh! Don't forget to set the build root, since building "in the source tree" is not supported -- you'll just get stuck in errors if you try (I did...)

A killer one:
http://cygwin.wikia.com/wiki/How_to_install_a_newer_version_of_GCC#Build_and_Install_GCC -- a complete guide.

迟到的我 2024-12-16 03:28:37

现在Linux 可以理解NTFS。至少,它应该能够读取它。
您还可以使用格式化为 FAT32 或 NTFS 的闪存棒作为共享存储。
您还可以在虚拟机中运行Linux并在其上设置FTP服务器并通过它交换文件。
在不同操作系统之间共享数据的方法有很多种。

Nowadays Linux understands NTFS. At least, it should be able to read off it.
You can also use a flash stick formatted as FAT32 or NTFS as the shared storage.
You can also run Linux in a VM and set up FTP server on it and exchange files through it.
There're many ways of sharing data between different OSes.

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