Suppose we have two programs. The program A is in binary form (ELF file), and the second program is a shred object file, say SO. I want to hook some instruction in the program A and move execution to particular instructions located in SO file.? I do not want to make a function call.

For example, I want to hook an instruction (binary instruction) in the program A and remove its 4 bytes (ARM 32-bit arch) and write a new branch instruction (b) that points to an instruction located in SO shared object program.!! is that possible using LD_PRELOAD?

More Hussien Al-haj Ahmad's questions See All
Similar questions and discussions