[LLVMdev] @plt problem in variable declaration

Vikram Singh vsp1729 at gmail.com
Mon Jan 5 02:20:03 PST 2015


Hi
I am porting LLVM for a variant of RISC processor. I am having problem in
declaration of different types of variable.
1. When using function pointer or if function is in other translation unit
   then the declaration in assemly file generated should be like this
   .word foo at plt
2. When declaring a global variable it should come like this
   .word var1
   In this case we don't want @plt after var1.
Where should we do it and how to distinguish in between them?

Thanx n Regards
Vikram



More information about the llvm-dev mailing list