[LLVMdev] dragon egg adding extra characters to function names

Duncan Sands baldrick at free.fr
Tue Jul 26 00:06:26 PDT 2011


Hi Gregory,

> I'm looking at compiling some pieces of the standard library with llvm but I'm
> running into problems with some functions being renamed by dragonegg. For
> example, when I compile the acos implementation with plain gcc I get:
>
> $ nm acos.o
> 0000000000000000 r .LC1
> 0000000000000048 r .LC10
> 0000000000000050 r .LC11
> 0000000000000058 r .LC12
> 0000000000000060 r .LC13
> 0000000000000068 r .LC14
> 0000000000000070 r .LC15
> 0000000000000008 r .LC2
> 0000000000000010 r .LC3
> 0000000000000018 r .LC4
> 0000000000000020 r .LC5
> 0000000000000028 r .LC6
> 0000000000000030 r .LC7
> 0000000000000038 r .LC8
> 0000000000000040 r .LC9
> 0000000000000000 T __GI_acos
> 0000000000000000 T __ieee754_acos
>                   U __ieee754_sqrt
> 0000000000000000 T acos
>
> but when I compile with dragonegg, I get:
>
> $ llvm-nm acos.bc.o
>           T __GI_acos
>           T acos
>           T __ieee754_acos
>           U __ieee754_sqrt

I don't see any functions being renamed: the names seem to be the same just
in a different order...

Ciao, Duncan.



More information about the llvm-dev mailing list