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

Benjamin Peterson bp@benjamin.pe
Wed Oct 25 06:44:00 GMT 2017



On Tue, Oct 24, 2017, at 01:13, Andreas Schwab wrote:
> On Okt 24 2017, Brooks Moses <bmoses@google.com> wrote:
> 
> > (Quick summary: $EXEC_ORIGIN in rpaths is like $ORIGIN, but it expands
> > to the executable's path as passed to execve(), rather than resolving
> > symlinks in the executable's path as $ORIGIN does.)
> 
> I think the name is confusing, since both $EXEC_ORIGIN and $ORIGIN
> expand to the origin of the executable.

I suppose the $EXEC_ORIGIN token takes its name from the elf auxiliary
vector, AT_EXECFN, it's derived from.

Would $SYMBOLIC_ORIGIN be bettter?



More information about the Libc-alpha mailing list