07-27-07 12:20 AM
On Thu, 26 Jul 2007 09:30:33 +0100
M=E5ns Rullg=E5rd <mans@mansr.com> wrote:
> Michael B Allen <ioplex@gmail.com> writes:
>=20
to[vbcol=seagreen]
>=20
> Shared libs need PIC on x86-64, or more accurately, relocatable code
> has to be PIC. This is because a 32-bit immediate address operand
> used in the code might need more than 32 bits after relocation. If
> this happens, there is nowhere to write the new value. Theoretically,
> it would be possible to generate non-PIC code without using the
> troublesome 32-bit immediate operands, but to my knowledge no compiler
> does this.
Hi Mans,
Very good explaination. That clears it up well.
Thanks,
Mike
[ Post a follow-up to this message ]
|