C 程序分离 elf 文件的数据部分

发布于 2024-10-10 14:06:36 字数 60 浏览 0 评论 0原文

使用readelf我们可以将数据部分从elf文件中分离出来(使用shell)是否可以用C程序做同样的事情?

Using readelf we can separate the data part from elf file(using shell)Is it possible to do the same with a C program?

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

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

发布评论

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

评论(2

抠脚大汉 2024-10-17 14:06:36

readelf本身就是用C编写的程序。所以答案是肯定的。

如果您使用的是类似 debian 的 Linux 发行版,您可能可以通过输入 apt-get source binutils 来获取 readelf 的源代码,并查看它是如何完成的。

readelf itself is program written in C. So the answer is yes.

If you are on a debian-like linux distribution, you can probably get the source of readelf by typing apt-get source binutils and see how it is done.

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