CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/09/13 13:30:29

Modified files:
        libexec/ld.so  : boot.c loader.c resolve.c resolve.h 
        libexec/ld.so/hppa: boot_md.c 
        libexec/ld.so/mips64: boot_md.c 

Log message:
Use the aux-args-located AUX_openbsd_execpath entry provided by
execve(2) as $ORIGIN for requests from the main executable dso (if
available, otherwise attempt to use the old realpath mechanism).  The
ld.so bootstrapping parses the AUX_* array into a 10-entry dl_data[]
for the post-relocation code to inspect easier.  Index 0 was not being
used, so use it to pass the auxval pointer to the bootstrap code.  In
the bootstrap code we make a copy of the execpath string to avoid later
$ORIGIN expansions in ld.so looking at possibly (intentionally?) damaged
stack.
ok kettenis kurt

Reply via email to