[fpc-devel] Address of procedures in linked libs

Jonas Maebe jonas.maebe at elis.ugent.be
Wed May 7 10:14:06 CEST 2008

On 07 May 2008, at 03:13, Andrew Haines wrote:

> In a dynamically linked in library (not dlload) if I do
> @SomeProcInSharedObject is it giving me the address of the code in
> memory or something else?

That depends on the platform.

> For instance I tried to overwrite a proc in gtk like so:

You cannot do that safely. Intercepting routines can often be done by  
interposing your own shared library (although this will obviously not  
catch direct calls from within the original library), but other than  
that you're pretty much out of luck.


More information about the fpc-devel mailing list