https://sourceware.org/bugzilla/show_bug.cgi?id=30144
Nick Clifton <nickc at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickc at redhat dot com --- Comment #1 from Nick Clifton <nickc at redhat dot com> --- Hi Pali, Looking into this, it is actually quite hard to predict the mangling of the entry symbol name. But I think that there might be a simple workaround: If you add a couple of assembler statements to define the DriverEntry symbol then this will not be mangled by the IX86 compiler, and the duplicate definition will be ignored by the AMD64 assembler. ie: asm (".set DriverEntry, ."); asm (".global DriverEntry"); __attribute__((stdcall)) long DriverEntry (void *DriverObject, void *RegistryPath) { return 0; } Would this be sufficient for you ? Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.