可用的ELF可执行文件需要哪些部分? [英] What sections are required for a usable ELF executable?

查看:160
本文介绍了可用的ELF可执行文件需要哪些部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个ELF可执行文件,我需要知道操作系统需要哪些部分才能加载和执行该文件.

I'm creating an ELF executable file and I need to know what sections are required by the operating system in order to load and execute it.

详细信息:

Details:


OS:               Ubuntu 10.04 (64-bit)
Kernel version:   2.6.32-24
Architecture:     i386

我意识到以下可能是必要的:

I realize that the following would probably be necessary:

  • .text
  • .symtab
  • .rel.text

还有其他人吗?

推荐答案

关于为Linux创建真正的ELF可执行文件的旋风教程"包含有关如何(ab)使用各个ELF部分以使可执行文件尽可能小的信息.如果您需要更多信息,它也包含指向ELF规范的链接. (这也是一本有趣的读物.)也许它会告诉您您需要知道什么?

"A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux " has information on how to (ab)use the various ELF sections to make an executable as small as possible. It also contains a link to the ELF specification if you need more information. (It's also a fairly entertaining read.) Maybe it will tell you what you need to know?

这篇关于可用的ELF可执行文件需要哪些部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆