[PATCH] __register_frame() when cross-building on Windows

Yaron Keren yaron.keren at gmail.com
Sun Sep 29 02:34:03 PDT 2013


Hi,

The HAVE_EHTABLE_SUPPORT logic in
lib\ExecutionEngine\RTDyldMemoryManager.cpp assumes that if
__register_frame() is not available on the building compiler, it's not
available in the target. For example, this happens on Windows when building
LLVM with Visual C++ but using the MingW runtime.

The attached patch tries (once) to find __register_frame() in the loaded
dynamic libraries at runtime if it wasn't linked at compile time.

Yaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130929/4ed4d2bf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-registerframe.diff
Type: application/octet-stream
Size: 1245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130929/4ed4d2bf/attachment.obj>


More information about the llvm-commits mailing list