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

Kaylor, Andrew andrew.kaylor at intel.com
Mon Sep 30 13:00:49 PDT 2013


Looks good to me.

From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Yaron Keren
Sent: Sunday, September 29, 2013 2:34 AM
To: llvm-commits at cs.uiuc.edu
Subject: [PATCH] __register_frame() when cross-building on Windows

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/20130930/c8369f6f/attachment.html>


More information about the llvm-commits mailing list