Patching code/symbols into a dynamic-linked ELF binary

前端 未结 4 2135
盖世英雄少女心
盖世英雄少女心 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:53

    I don't seem to be able to just add comment to this question, so posting it as an "answer". Sorry about it, doing that just to hopefully help other folks who search an answer.

    So, I seem to have similar usecase, but I explicitly find any modification to existing binaries unacceptable (for me), so I'm looking for standalone proxy approach: Proxy shared library (sharedlib, shlib, so) for ELF?

提交回复
热议问题