[PATCH] MS ABI: Implement x86_64 RTTI

David Majnemer david.majnemer at gmail.com
Sun Jun 15 08:28:02 PDT 2014


Hi rnk, whunt,

The RTTI scheme for x86_64 is largely the same as the one for i386.

Differences are largely limited to avoiding load-time relocations by
replacing pointers to RTTI metadata with the difference of that data
relative to the load address of the module.

Interestingly, this precludes the possibility of successfully using RTTI
data from another DLL.  The ImageBase reference is always relative to
the current DLL.

http://reviews.llvm.org/D4148

Files:
  lib/CodeGen/MicrosoftRTTI.cpp
  test/CodeGenCXX/microsoft-abi-rtti.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4148.10422.patch
Type: text/x-patch
Size: 52659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140615/6a16985d/attachment.bin>


More information about the cfe-commits mailing list