[PATCH][v2] Add dynamic linker support for $EXEC_ORIGIN.

Paul Pluzhnikov ppluzhnikov@google.com
Wed Oct 25 15:55:00 GMT 2017


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



More information about the Libc-alpha mailing list