I'm trying to load a shared object (AIX 4.2), built with this makefile:
xlC_r -c shared.C
ld -bnoentry -bexpall -bimport:symbols.imp -G -o shared.so
When I try to use dlopen to load that object, dlopen fails with the
ENOEXEC error. Man page on ld says that -G flag is supposed to yield a
shared object. When I replace the -G flag with -bM:SRE, dlopen works.
Why can't I use -G ? Do I have to build the calling program (the one
who calls dlopen) with some special options ?
I would appreciate any help on this subject. Thank you,
Sent via Deja.com http://www.deja.com/
Before you buy.