HomeFreeBSD

compiler-rt: support ReExec() on FreeBSD

Description

compiler-rt: support ReExec() on FreeBSD

Based on getMainExecutable() in llvm/lib/Support/Unix/Path.inc.
This will need a little more work for an upstream change as it must
support older FreeBSD releases that lack elf_aux_info() / AT_EXEC_PATH.

No objection: dim
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33934

(cherry picked from commit 96fe7c8ab0f65cf829619abd74ae6c126b21e15f)

Details

Provenance
emasteAuthored on Jan 19 2022, 6:08 PM
Differential Revision
D33934: compiler-rt: re-exec with ASLR disabled when necessary
Parents
rG860508661c14: ssh: pass 0 to procctl(2) to operate on self
Branches
Unknown
Tags
Unknown