Patching code/symbols into a dynamic-linked ELF binary

前端 未结 4 2138
盖世英雄少女心
盖世英雄少女心 2021-02-15 02:12

Suppose I have an ELF binary that\'s dynamic linked, and I want to override/redirect certain library calls. I know I can do this with LD_PRELOAD, but I want a solut

4条回答
  •  醉话见心
    2021-02-15 02:52

    I suggest the elfsh et al. tools from the ERESI project, if you want to instrument the ELF files themselves. Compatibility with i386-linux is not a problem, as I've used it myself for the same purpose.

    The relevant how-tos are here.

提交回复
热议问题