[PATCH] D114961: [ORC-RT][ORC] Handle dynamic unwind registration for libunwind

Peter S. Housel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 2 07:22:44 PST 2021


housel created this revision.
housel added a reviewer: lhames.
Herald added subscribers: hiraditya, emaste.
housel requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

This changes the Orc runtime for ELFNix platforms to use, when available, the `__unw_add_dynamic_eh_frame_section` interface provided by libunwind for registering .eh_frame sections loaded by JITLink. When libunwind is not being used for unwinding, the ELFNix platform detects this and defaults to the `__register_frame` interface provided by libgcc_s.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114961

Files:
  compiler-rt/lib/orc/elfnix_platform.cpp
  compiler-rt/test/orc/TestCases/FreeBSD/ehframe-default.cpp
  compiler-rt/test/orc/TestCases/FreeBSD/ehframe-libunwind.cpp
  compiler-rt/test/orc/TestCases/Linux/ehframe-default.cpp
  compiler-rt/test/orc/TestCases/Linux/ehframe-libunwind.cpp
  compiler-rt/test/orc/lit.cfg.py
  compiler-rt/test/orc/lit.site.cfg.py.in
  llvm/include/llvm/ExecutionEngine/Orc/ELFNixPlatform.h
  llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114961.391308.patch
Type: text/x-patch
Size: 9505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211202/184bcb8f/attachment.bin>


More information about the llvm-commits mailing list