[LLVMbugs] [Bug 10174] New: Incorrect decoration of symbols in export declaration (dllexport)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 22 23:54:57 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10174
Summary: Incorrect decoration of symbols in export declaration
(dllexport)
Product: tools
Version: 2.9
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: l0calh05t at gmx.net
CC: llvmbugs at cs.uiuc.edu
When a function is declared with the dllexport option such as
define dllexport %struct.AEffect* @VSTPluginMain(i32 (%struct.AEffect*, i32,
i32, i32, i8*, float)* %audioMaster)
results in the symbol _VstPluginMain (with _ prefix) in the generated assembly,
as required per dll export rules, but the export declaration
.ascii " -export:_VSTPluginMain"
should *NOT* contain this decoration, which results in the following linker
error:
Cannot export _VSTPluginMain: symbol not found
Manually correcting the export declaration to
.ascii " -export:VSTPluginMain"
corrects this error.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list