有关加载和链接 elf 文件的参考书或文档
我已经在 Windows 中实现了 elf 解析器的某些方面,直到获取符号表信息和符号相关信息。现在我想继续了解有关链接和加载的更多信息,我认为这与解析 elf 文件中的程序头有关。
到目前为止,elf 格式规范非常有帮助,但我发现很难理解和关联重定位信息、链接和加载到虚拟内存中。
谁能推荐一个好的参考资料或文件?是链接器 &约翰·R·莱文 (John R. Levine) 的《装载机》这本书从哪里开始?我的要求目前仅限于 elf 文件格式。
I have implemented some aspects of an elf parser in Windows til getting the symbol table information and the symbol related information. Now I want to go ahead and know more about linking and loading which I believe has to do with parsing the program headers in the elf file.
Till now the elf format specification was very helpful, but I find it difficult to understand and relate to relocation information, linking and loading into virtual memory.
Can anyone suggest a good reference or documents? Is Linkers & Loaders by John R. Levine the book to start with? My requirement is at present limited to elf file formats.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
链接器和John R. Levine 的 Loaders 绝对是一个很好的入门资源。它进入链接器的高级操作,与特定的目标文件格式无关。
然而,当涉及到实际实现 ELF 链接器/加载器的具体细节时,确实没有比 ELF 标准更好的文档了。这是相当不幸的,因为 ELF 标准非常简洁并且可能含糊不清。
Linkers & Loaders by John R. Levine is definitely a good resource to get started. It goes into the high level operation of a linker, agnostic to a specific object file format.
However, when it comes down to the nitty gritty details of actually implementing a ELF linker/loader, there really isn't any better documentation than the ELF standard. This is rather unfortunate because the ELF standard is quite terse and can be ambiguous.