[llvm] [llvm][Support] Enable dl_iterate_phdr support on OpenBSD and DragonFly (PR #125186)
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 31 01:05:39 PST 2025
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/125186
None
>From e15aef5faf90ff5d7e1c1a0c393c7dd492fd3503 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Fri, 31 Jan 2025 03:59:12 -0500
Subject: [PATCH] [llvm][Support] Enable dl_iterate_phdr support on OpenBSD and
DragonFly
---
llvm/lib/Support/Unix/Signals.inc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index 9a12663228a368..61670a6e93140d 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -468,7 +468,8 @@ void llvm::sys::AddSignalHandler(sys::SignalHandlerCallback FnPtr,
#if ENABLE_BACKTRACES && defined(HAVE_BACKTRACE) && \
(defined(__linux__) || defined(__FreeBSD__) || \
- defined(__FreeBSD_kernel__) || defined(__NetBSD__))
+ defined(__FreeBSD_kernel__) || defined(__NetBSD__) \
+ defined(__OpenBSD__) || defined(__DragonFly__))
struct DlIteratePhdrData {
void **StackTrace;
int depth;
More information about the llvm-commits
mailing list