This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Stack mangling for anonymous function pointers
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Matt Hauer" <matthew dot hauer at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 24 Oct 2008 14:27:36 -0700
- Subject: Re: Stack mangling for anonymous function pointers
- References: <849364920810241423l1abbd851s767116c272e35571@mail.gmail.com>
On Fri, Oct 24, 2008 at 2:23 PM, Matt Hauer <matthew.hauer@gmail.com> wrote:
> Is there a reliable way to write data to the stack such that a called
> function pointer can extract the values it seeks?
I suggest you look into libffi which is already used for this purpose
for GCJ (inside libgcj).
Thanks,
Andrew Pinski