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

2021-12-03 Thread Theodore Y. Ts'o
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/

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

2021-12-03 Thread Theodore Y. Ts'o
On Fri, Dec 03, 2021 at 05:59:17PM +0100, Florian Weimer wrote: > * Theodore Y. Ts'o: > > > * How does ld.so --preload *work*? > > The dynamic loader has an array of preloaded sonames, and it processes > them before loading the dependencies of the main program. This