Re: AT_EXECPATH aux_info vector contains path of interpreter when directly exec'ing rtld

From: Ed Maste <emaste_at_freebsd.org>
Date: Fri, 20 Dec 2019 17:03:01 -0500
On Fri, 20 Dec 2019 at 16:26, Ryan Stone <rysto32_at_gmail.com> wrote:
>
> I've noticed that on head, if I directly execute rtld to run an
> executable, AT_EXECPATH contains the path to rtld on head (on
> 12.0-RELEASE it will contain nothing).  This is causing me a problem
> because clang uses AT_EXECPATH to preferentially locate where it's
> installed, which it uses to locate its driver programs.

I have two questions, I suppose:

- What is the correct thing for AT_EXECPATH in light of fexecve rtld?
Arguably /libexec/ld-elf.so.1 is correct.

- What's the desired behaviour for Clang when run from ld-elf.so.1 -f fd?
Received on Fri Dec 20 2019 - 21:03:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC