[LLVMdev] "-relocation-model=static" does not work in llc compiler ?

Tim Northover t.p.northover at gmail.com
Thu Nov 7 05:39:22 PST 2013


On 6 November 2013 10:57, lipengcheng <pli at cs.rochester.edu> wrote:
> Another finding is when I use both -code-model=large and -relocation-model=pic (!!!!!note changed),
> it still generate the static relocation. So does it mean  -relocation-model=pic does not like to work
> with  -code-model=large ?

I agree it looks like that doesn't work. I'd expect to see some GOT
references in the output, though possibly still technically absolute
relocations (since movabsq is still likely to be the instruction
used).

Strange, I thought I'd seen patches trying to get that combination
working in the JIT recently, but apparently not.

Cheers.

Tim.



More information about the llvm-dev mailing list