This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Never try to execute the file in ldd
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 24 Mar 2014 15:10:23 -0700 (PDT)
- Subject: Re: [PATCH] Never try to execute the file in ldd
- Authentication-results: sourceware.org; auth=none
- References: <mvma9cfobqi dot fsf at hawking dot suse dot de>
I always thought it wrong that it did that too. But I vaguely recall being
told there was some reason for it. (Maybe even I thought myself there was
an adequate reason. I can't recall any details now.) So we should
understand what the past reasoning was and be sure it no longer applies
today before we make such a change.
The only thing that comes to mind is cases where PT_INTERP points to a
different dynamic linker, such as a from build with a special --prefix=
setup or something stranger. In those cases, what the vanilla rtld will
think about search paths and so forth won't match what the actual PT_INTERP
dynamic linker will do.
But I'm not at all sure that was the case (or was the only case) that
motivated the current behavior.