This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] ld.so: command argument "--preload"
On 08/31/2018 04:15 PM, H.J. Lu wrote:
> On Fri, Aug 31, 2018 at 12:29 PM, Carlos O'Donell <carlos@redhat.com> wrote:
>> On 08/31/2018 10:46 AM, David Newall wrote:
>>> I'm new here, so I'm probably doing this wrong. Please tell me what I
>>> should be doing.
>>
>> The patch looks great, and it's something we don't have implemented.
>>
>> Thanks! Fulfilling a need is reason #1 to implement something.
>>
>> Adding HJ to TO:
>>
>> HJ, did you propose a similar patch at one point?
>
> I ran into a ld.so --library-path problem:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=22747
>
> Does this patch also address it?
Thank you for the reference.
Your patch does not address the issue, but is related.
Here the author of the patch David Newall is wanting to implement
a --preload for the dyanmic loader to do the equivalent of
LD_PRELOAD but only for the binary that is about to be started
by the dyanmic loader (and not any children).
In your case we were talking about a new option to override
DT_RPATH and DT_RUNPATH e.g. --dt_rpath, --dt_runpath, to allow
you to run tests with hard-coded paths against different glibc
builds.
Thank you again for double checking the results. I couldn't
remember what option you had problems with.
--
Cheers,
Carlos.