AIX 5.3 introduces variables LDR_PRELOAD
(for 32-bit programs) and LDR_PRELOAD64
(for 64-bit programs). They are similar to LD_PRELOAD for Linux. Both are colon-separated lists of libraries, and characters will be preloaded from the listed shared objects before anything else.
For example, if you have a shared object foo.so:
LDR_PRELOAD=foo.so
, AIX :
LDR_PRELOAD="bar.a(shr.so)"
:
LDR_PRELOAD="foo.so:bar.a(shr.so)"