http://llvm.org/bugs/show_bug.cgi?id=5851
Summary: llvm binds wrong symbols for stdcall functions
Product: tools
Version: 2.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Keywords: compile-fail
Severity: major
Priority: P2
Component: llvm-as
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
---
struct A
{
__stdcall void (*p)();
};
static __stdcall void MyFunc()
{
}
struct A B={MyFunc};
---
>llvm-gcc -pipe -c tmp.c -o tmp.o
---
>ld tmp.o -o tmp.exe
tmp.o:fake:(.data+0x0): undefined reference to `MyFunc'
---
It must be myf...@0 to begin with... It definitely generates cdecl symbol for
stdcall function.
This prevents building COM vtables.
IR looks ok, so this an llvm-as bug, I'm unsure who is responsible for
generation of right symbols.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs