This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Handle DF_1_INTERPOSE


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
standardized.


> 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.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+2EN12ijCOnn/RHQRAhL2AKCutCh2V8pCGv5DGvJhU+GVWkSl3gCeODdf
qrenm5EYot+rhSXWWjdsVqo=
=VtoE
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]