[LLVMdev] ARM Relocation Information

Renato Golin renato.golin at arm.com
Thu May 27 08:22:36 PDT 2010


Hi all,

 

Does anyone knows where to add relocation information to assembly data
instructions?

 

For instance, ARM GCC generates symbols like:

 _ZTIi (TARGET2)

 

While Clang doesn't include the TARGET2 relocation information, and that
mess up cross-linking.

 

Looking at the AsmPrinter, when emitting the global constant value
(EmitGlobalConstant), it calls EmitGlobalConstantImpl, which end up using
EmitValue or EmitIntValue, but neither has relocation information on them.

 

Also, searching the code, I couldn't find any reference to relocation or any
of the basic relocation types available in Codesourcery's GCC. Is there
anything at all in LLVM regarding relocations? If not, what would be the
best place to add and link from ARMMC* and ARMAsmPrinter?

 

Thanks,

--renato

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100527/7e6c24a9/attachment.html>


More information about the llvm-dev mailing list