[cfe-dev] export symbol names with leading underscore
Eli Friedman
eli.friedman at gmail.com
Wed Jun 22 16:52:24 PDT 2011
On Wed, Jun 22, 2011 at 4:24 PM, Glenn Ganz <glenn at egastones.ch> wrote:
> I found the bug.
> The X86AsmPrinter.cpp produces on line 624 and 637 exports with the mangles
> names. this should be the unmangled name for cross compiling a dll with
> binutils.
> as workaround i patched this lines
> name += DLLExportedGlobals[i]->getName()
> AND
> name += DLLExportedFns[i]->getName();
> with deleting the first character substr(1).
> This is not really the correct fix, but it works for me.
Oh, right, symbols are prefixed on Windows. But not here, apparently...
A patch with a testcase, even if it's a hack, would be appreciated.
-Eli
More information about the cfe-dev
mailing list