This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stack mangling for anonymous function pointers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]