>> if (not_a_function_descriptor(ptr)) >> return ptr; > > I'm not sure if it's possible on ia64/ppc64/parisc64 > to reliably detect if it's a function descriptor or not.
Agreed. I don't know how to write this test (without changing the compiler to put the pointers in a separate section ... and then changing the module loader to keep a list of all these sections). -Tony