Skip to content

Files

Latest commit

63a32c6 · Sep 14, 2017

History

History
This branch is 2 commits ahead of, 17 commits behind BR903/ELFkickers:master.

redefine

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 14, 2017
Sep 14, 2017
Sep 14, 2017
Sep 14, 2017
redefine is a small utility that allows one to modify the name of a dynamic symbols in an ELF object file (not perfect!).

程序未全面测试,仅适用于我工作中的某一个需求。采用的方式是直接将string table里的name改掉,然后rehash .hash section。目前仅可以将长函数名转换成短函数名,在rename之后在string table里原来的位置里使用0补齐。并没有改变string table的大小,所以其它区域也不需要重新定位地址。

ref: https://stackoverflow.com/questions/20492225/how-to-rename-dynamic-symbols-in-arm-elf-so-file
ref: http://binutils.sourceware.narkive.com/fZHiSvNm/objcopy-redefine-dynamic-symbols
ref: http://www.cppblog.com/tqsheng/archive/2012/12/07/196107.aspx
ref: http://docs.oracle.com/cd/E26926_01/html/E25910/chapter6-48031.html#scrolltoc