[PATCH] MCJIT/ELF now support MSVC C++ mangled symbol

Benoit Belley benoit.belley at autodesk.com
Tue Jan 6 09:37:48 PST 2015


Hi lhames, Bigcheese,

The ELF format is used on Windows by the MCJIT engine. Thus, on Windows, the ELFObjectWriter can encounter symbols mangled
using the MS Visual Studio C++ name mangling. Symbols mangled using the MSVC C++ name mangling can legally have "@@@" as a substring. The EFLObjectWriter should not interpret the "@@@" substring as specifying GNU-style symbol versioning. The ELFObjectWriter therefore check for the MSVC C++ name mangling prefix which is either "?", "@?", "__imp_?" or "__imp_?@".

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6855

Files:
  lib/MC/ELFObjectWriter.cpp
  test/MC/ELF/symver-msvc.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6855.17832.patch
Type: text/x-patch
Size: 4558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150106/798868d9/attachment.bin>


More information about the llvm-commits mailing list