================
@@ -424,7 +424,13 @@ static bool checkAddrInSegment(const Elf_Phdr *phdr, 
size_t image_base,
 static bool checkForUnwindInfoSegment(const Elf_Phdr *phdr, size_t image_base,
                                       dl_iterate_cb_data *cbdata) {
 #if defined(_LIBUNWIND_SUPPORT_DWARF_INDEX)
+#if defined(PT_SUNW_EH_FRAME) && defined(PT_SUNW_UNWIND)
+  // illumos/Solaris use PT_SUNW_EH_FRAME and PT_SUNW_UNWIND instead of 
PT_GNU_EH_FRAME.
+  // FreeBSD defines PT_SUNW_UNWIND but not PT_SUNW_EH_FRAME, so check for 
both.
----------------
MaskRay wrote:

Actually, consider removing the source change and adding a cmake `-D` like 
Haiku did in https://reviews.llvm.org/D157866

https://github.com/llvm/llvm-project/pull/176988
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to