This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][v2] Add dynamic linker support for $EXEC_ORIGIN.
On Wed, Oct 25, 2017 at 8:36 AM, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
> and Rich Felker notes that it can be hacked around
> without elf changes using wrapper scripts like
>
> exec /lib/ld-linux.so.2 --library-path /path/with/dso/symlinks /path/to/exe "$@"
That hack has its own set of problems. E.g. it doesn't work for Java,
which likes to set environment variables to its liking and then
re-execs itself.
--
Paul Pluzhnikov