Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PIC question



On May 28, 2010, at 12:44 AM, Johnny Billquist wrote:
> 
>>      jmp     .Loop[%r5]
> 
> Hmm, so deferring won't work, but indexing will? That sounds weird...
> Is that some limitation on gas then?

It works because you are indexing a pc-relative displacement.

        jmp     .Loop(%r5)

puts the symbol as an absolute displacement which is why it fails
to be PIC.

By design, the VAX instruction set wants code to be PIC, in 
fact (unlike a lot of architectures) PIC code is the fastest.


Home | Main Index | Thread Index | Old Index