创建新的 ELF 可执行文件

发布于 2024-10-04 07:17:52 字数 55 浏览 1 评论 0原文

是否可以使用汇编创建新的 ELF 可执行文件?我想制作一个“空”可执行文件,然后填充其代码部分。

Is it possible to create a new ELF executable file by using assembly? I want to make an 'empty' executable file and fill its code section after.

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

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

发布评论

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

评论(1

雄赳赳气昂昂 2024-10-11 07:17:52

这是一篇有趣的文章,您会发现它很有用:创建真正青少年的旋风教程Linux 的 ELF 可执行文件

它首先分析基于 C 的小型可执行文件的大小,然后通过使用汇编程序来使其尽可能小。他通过一系列越来越复杂的分析和技巧将其从 3998 字节减少到只有 45 字节。

我相信如果您阅读并遵循它,您将比您可能需要的更多地了解 ELF!

Here's an interesting article which you'll find useful: A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux

It starts off by analysing the size of a tiny C-based executable, and then seeks to make it small as possible by using assembler instead. He gets it from 3998 bytes down to just 45 bytes with a series of increasingly more involved analyses and tricks.

I'm sure if you read and follow along with it, you'll know more about ELF than you likely needed!

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