本文参考https://github.com/F8LEFT/SoFixer相关代码进行了代码的review, 尝试梳理内部流程, 也算是自己对于linker的一个阶段性总结
#帮助文档
-
由于从内存中dump,将文件偏移和大小 覆写为 内存大小和偏移。
-
从program header 中获取找到PT_DYNAMIC 。将dynamic 作为构建section header 的关键信息。
-
PT_DYNAMIC包含了部分节信息, 还原这部分内容
本文参考https://github.com/F8LEFT/SoFixer相关代码进行了代码的review, 尝试梳理内部流程, 也算是自己对于linker的一个阶段性总结
#帮助文档
由于从内存中dump,将文件偏移和大小 覆写为 内存大小和偏移。
从program header 中获取找到PT_DYNAMIC 。将dynamic 作为构建section header 的关键信息。
PT_DYNAMIC包含了部分节信息, 还原这部分内容