This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Binary rewriting of indirect function calls
- From: Andrew Haley <aph at redhat dot com>
- To: Abhinav Srivastava <abhinavs_iitkgp at yahoo dot co dot in>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 19 Nov 2009 10:39:51 +0000
- Subject: Re: Binary rewriting of indirect function calls
- References: <308013.69278.qm@web7905.mail.in.yahoo.com>
Abhinav Srivastava wrote:
> 1) what are the ways in which an indirect call instruction can be overwritten by a direct call instruction inside the memory?
I don't understand this question.
> 2) Is it possible to modify gcc in such a way that it generates some "NOP" instructions after each indirect function calls?
Yes, that can be done. I don't really know enough about your skills
to say how long it would take you.
Andrew.