On Tue, 2009-11-24 at 17:12 +0000, Andrew Haley wrote:
Earlier in the GCC BUG thread we talked about this. Adding a __fentry__
call at the beginning of the function. This could be done for other
archs as well, but yes, the return address must be stored. For x86 it is
the easiest because it automatically stores the return address on the
stack (Andi already has a working patch I believe).
For other archs, Linus showed some examples:
http://lkml.org/lkml/2009/11/19/349
-- Steve
--