| Paul Pluzhnikov 2006-03-23, 4:07 am |
| Henry Townsend <henry.townsend@not.here> writes:
> My understanding is that they do have shared libraries but
> that symbol resolution is already done by the time the runtime linker
> fires up.
With default linking mode, that's correct (AIX shared libraries
are much more similar to Win32 DLLs, than to any other UNIX).
However, AIX5.1 introduced "deferred" linking, which works just
like all other UNIX shared libraries.
> My understanding is limited by being neither a linking expert nor an
> AIX user, but it does seem clear that runtime interposition on AIX
> cannot be done.
It can be done quite easily, but you have to name your library
libc.a and the definition must come from a "shared object module"
named shr.o [if that's where the executable says it is importing
the symbol from]. And if you do that, then you must provide all
other symbols that the exe imports from libc.a(shr.o) as well.
It's a bit tricky, but my product does it all the time.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
|