COFF X86_64搬迁类型

发布于 2025-02-12 20:02:45 字数 180 浏览 1 评论 0 原文

我正在为开源项目开发Linker开发。目标体系结构为 AMD_X86_X64 。在中,AMD_X86_X64 指定重新定位类型的计算精灵的计算,例如 r_x86_64_64 计算为 s + a 。如何在Coff中进行这些计算,我找不到网上?

I am working on linker development for an open source project. The target architecture is AMD_X86_X64. In AMD_X86_X64 specification The relocation types' calculations for ELF are declared for example, R_X86_64_64
the calculation is S + A. How to do these calculations in COFF I can't find them online ?

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

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

发布评论

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

评论(1

亢潮 2025-02-19 20:02:45

Coff搬迁类型在

image_rel_amd64_absolute r_x86_x64_copy (无搬迁),
image_rel_amd64_addr64 r_x86_x64_64 (s+a)相对应
image_rel_amd64_addr32 r_x86_x64_32 (s+a),
对应
image_rel_amd64_rel32 r_x86_x64_pc32 (S+AP)对应。

COFF relocation types are enumerated at COFF Relocations for x64.

IMAGE_REL_AMD64_ABSOLUTE corresponds with R_X86_X64_COPY (no relocation),
IMAGE_REL_AMD64_ADDR64 corresponds with R_X86_X64_64 (S+A),
IMAGE_REL_AMD64_ADDR32 corresponds with R_X86_X64_32 (S+A),
IMAGE_REL_AMD64_REL32 corresponds with R_X86_X64_PC32 (S+A-P).

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