[all-commits] [llvm/llvm-project] a0a38b: On FreeBSD use AT_EXECPATH from ELF auxiliary vect...

Ed Maste via All-commits all-commits at lists.llvm.org
Thu Nov 14 06:53:10 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a0a38b81ea911f1cd4e400f1ab54dd4930598a7c
      https://github.com/llvm/llvm-project/commit/a0a38b81ea911f1cd4e400f1ab54dd4930598a7c
  Author: Ed Maste <emaste at freebsd.org>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    M llvm/lib/Support/Unix/Path.inc

  Log Message:
  -----------
  On FreeBSD use AT_EXECPATH from ELF auxiliary vectors for getExecutablePath

/proc/curproc/file and the KERN_PROC_PATHNAME sysctl may not return the
desired path if there are multiple hardlinks to the file, or if the path has
expired from the namecache.

Reviewed By:	theraven

Differential Revision:	https://reviews.llvm.org/D70198




More information about the All-commits mailing list