Patching code/symbols into a dynamic-linked ELF binary

前端 未结 4 1448
無奈伤痛
無奈伤痛 2021-02-15 02:17

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 03:01

    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.

提交回复
热议问题