LD_PRELOAD and dlopen
Andreas Jaeger
aj@suse.de
Tue May 29 12:25:00 GMT 2001
"Stephen Done" <stephen.done@cw.com> writes:
> FAILED - Linux with -ldl
> ========================
> # make
> gcc -Wall -ldl -fPIC -shared -o preload.so preload.c
The order is important, put -ldl last:
gromit:/tmp/pr:[0]$ gcc -Wall -fPIC -shared -o preload.so preload.c -ldl
gromit:/tmp/pr:[0]$
And everything seems to work for me,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-alpha
mailing list