From 8450bb533fbbd2b0466f53450fb604ac9dd7956f Mon Sep 17 00:00:00 2001 From: Thomas A Date: Tue, 26 Apr 2022 08:48:51 -0700 Subject: [PATCH] Add Constructor For MachOAnalyzerSet Works around a linkage issue. --- dyld3/MachOAnalyzerSet.cpp | 4 ++++ dyld3/MachOAnalyzerSet.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/dyld3/MachOAnalyzerSet.cpp b/dyld3/MachOAnalyzerSet.cpp index 3ca24c7..6ae9e3e 100644 --- a/dyld3/MachOAnalyzerSet.cpp +++ b/dyld3/MachOAnalyzerSet.cpp @@ -49,6 +49,10 @@ static bool hasHigh8(uint64_t addend) return ( (addend >> 48) != 0xFFFF ); } +#ifdef DARLING +MachOAnalyzerSet::MachOAnalyzerSet() {} +#endif + void MachOAnalyzerSet::WrappedMachO::forEachBind(Diagnostics& diag, FixUpHandler fixUpHandler, CachePatchHandler patchHandler) const { const bool is64 = _mh->is64(); diff --git a/dyld3/MachOAnalyzerSet.h b/dyld3/MachOAnalyzerSet.h index 27f4c3d..5611cc5 100644 --- a/dyld3/MachOAnalyzerSet.h +++ b/dyld3/MachOAnalyzerSet.h @@ -107,6 +107,9 @@ namespace dyld3 { struct VIS_HIDDEN MachOAnalyzerSet { public: +#ifdef DARLING + MachOAnalyzerSet(); +#endif struct FixupTarget; struct ExportsTrie { const uint8_t* start; const uint8_t* end; } ;