[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/bin/ld.so as a symbolic link for the dynamic loader



On Fri, Dec 03, 2021 at 02:46:27PM +0100, Bastian Blank wrote:
> On Fri, Dec 03, 2021 at 01:57:08PM +0100, Florian Weimer wrote:
> > Right, thanks for providing a concrete example.  A (somewhat) portable
> > version would look like this:
> >   ld.so --preload '/usr/$LIB/libeatmydata.so.1.3.0' /bin/sl
> 
> You mean
>   ld.so --preload libeatmydata.so.1.3.0 /bin/ls

Some stupid questions that I couldn't answer by reading the man page
or doing a quick google search....

* How does ld.so --preload *work*?

* Does it modify /bin/ls, so that all users running /bin/ls get the
preloaded library?

* Does it modify something in the user's home directory?

* How do you undo the effects ld.so --preload?

"Inquiring minds want to know"  :-)

Thanks,

					- Ted


Reply to: