This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: Handle DF_1_INTERPOSE
-----BEGIN PGP SIGNED MESSAGE-----
H. J. Lu wrote:
> "-z interpose" is supposed to work similar to LD_PRELOAD. The main
> difference is it is done automatically.
I know what it does. This does not mean I know what it useful for. Any
you didn't answer that either.
> Like any shared libraries,
> things can go wrong if it is not used appropriately.
And no, it's not some problem you can brush over with a comment like
this. It has only any effect until everybody uses it since the next DSO
maintainer thinks her/his DSO has equal rights to be added to the front.
This is a ill-designed extension. It is impossible to figure out what
the behavior of the application will be since it is not visible what the
final order in the search scope will be. The standard ELF lookup format
works well because it is absolutely clear what the order is, it's
> We find a need to interpose some functions in libc.so automatically
> independent of the link order without using LD_PRELOAD. "-z interpose"
> does what we need.
Still no reason.
I see no reason to add this until I see real evidence for the usefulness.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
-----END PGP SIGNATURE-----