Skip to content

Latest commit

 

History

History

01elfheader.md

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

ELF修复基本工作原理

20220107175810

本文参考https://github.com/F8LEFT/SoFixer相关代码进行了代码的review, 尝试梳理内部流程, 也算是自己对于linker的一个阶段性总结

分析

tmp.so 和原始文件比较

20220107174615

20211231165901

20211231165939

#帮助文档

http://pareto.fun/?p=292

elf剔除

android-elf-cleaner

elf修复

  1. 由于从内存中dump,将文件偏移和大小 覆写为 内存大小和偏移。

  2. 从program header 中获取找到PT_DYNAMIC 。将dynamic 作为构建section header 的关键信息。

  3. PT_DYNAMIC包含了部分节信息, 还原这部分内容

frida_dump