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

Details

Provenance
emasteAuthored on Jan 19 2022, 6:08 PM
Differential Revision
D33934: compiler-rt: re-exec with ASLR disabled when necessary
Parents
rG867b4decb4d5: lindebugfs: Fix write
Branches
Unknown
Tags
Unknown