[llvm-dev] Specify address of extern variable in llvm bitcode

Niddodi, Chaitra via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 7 19:37:02 PDT 2021


How to specify address of an extern variable in llvm bitcode?

Say, I have an int variable declared as

extern int key;

and the address of the variable is 0x7f4c2dacf000

Is there a way to modify the llvm bitcode to specify the variable's address?

Thanks,
Chaitra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210608/69e1b0a1/attachment-0001.html>


More information about the llvm-dev mailing list