[LLVMdev] dragon egg adding extra characters to function names

Gregory Malecha gmalecha at eecs.harvard.edu
Wed Jul 27 00:27:37 PDT 2011

Thanks Duncan.

On Wed, Jul 27, 2011 at 12:08 AM, Duncan Sands <baldrick at free.fr> wrote:

> Hi Gregory,
> > Ah, non-unicode email... In the llvm output there should be a "1"
> character,
> > i.e. (char) 0x01, prepended to acos and __GI_acos. I'm unable to get it
> on
> > smaller things, but it happens when I try to compile uClibc with llvm.
> I've
> > attached the .o and the .bc for comparison. The text file is the result
> after
> > preprocessing (to avoid having to download a bunch of stuff).
> this is normal, and should not turn up in final assembler output.
>  Internally
> GCC uses a leading "*" character while LLVM uses a leading "\1" for
> indicating
> that the symbol should turn up in the assembler as is (without the leading
> character */\1) and not with something prepended to it (on some platforms
> an
> underscore would normally be prepended to all symbol names for example).
>  Since
> llvm-nm works on bitcode, it shows you bitcode names including the leading
> "\1"
> (maybe this is an llvm-nm bug?).  However the code generators should
> eliminate
> it.
> Ciao, Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

gregory malecha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110727/632d2d3f/attachment.html>

More information about the llvm-dev mailing list