[llvm] [ORC] Use __unw_add_dynamic_eh_frame_section/__unw_remove_dynamic_eh_ frame_section in RegisterEHFrames.cpp (PR #212260)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 05:33:18 PDT 2026
================
@@ -122,6 +127,14 @@ Error walkLibunwindEHFrameSection(const char *const SectionStart,
Error registerEHFrameSection(const void *EHFrameSectionAddr,
size_t EHFrameSectionSize) {
+#if defined(HAVE_REGISTER_FRAME) && defined(HAVE_DEREGISTER_FRAME) && \
----------------
lhames wrote:
I think @aengelke is right: These should be weak symbols. Otherwise an image linked against them will fail to load on systems that don't have them.
Do COFF targets ever use libunwind? If not then we can just set them to zero unconditionally there.
https://github.com/llvm/llvm-project/pull/212260
More information about the llvm-commits
mailing list