[LLVMdev] PIC documentation ?

Aaron Gray aaronngray.lists at googlemail.com
Tue Jun 16 14:49:26 PDT 2009


>> Maybe we should collect references and do some LLVM PIC documentation and
>> put it on LLVM website ?
> What you mean as "LLVM PIC documentation"? What should be included there?

Good question, if I had a proper overview of LLVM PIC implmentation then I 
would know :)

>> Okay. We need documentation, what is the difference between DynamicNoPIC 
>> and
>> full PIC ?
>>From TargetMachine.cpp (actually this is show in llc --help):
>
>  cl::values(
>    clEnumValN(Reloc::Default, "default",
>               "Target default relocation model"),
>    clEnumValN(Reloc::Static, "static",
>               "Non-relocatable code"),
>    clEnumValN(Reloc::PIC_, "pic",
>               "Fully relocatable, position independent code"),
>    clEnumValN(Reloc::DynamicNoPIC, "dynamic-no-pic",
>               "Relocatable external references, non-relocatable code"),
>    clEnumValEnd));

This tells me a bit but very little.

Okay I will have to study the code, I was hoping not to have to do that.

Aaron




More information about the llvm-dev mailing list