This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Abt -fpic, -fPIC Option
Ian Lance Taylor <iant@google.com> writes:
> "Rohit Arul Raj" <rohitarulraj@gmail.com> writes:
>
>> I have built a cross-compiler for m68k-elf with GCC 4.1.1.
>> I need to know the difference in implementations of -fpic and -fPIC
>> for this particular target.
>
> -fpic uses a 16-bit offset when accessing the GOT. -fPIC uses a
> 32-bit offset. Thus -fpic may fail if you have more than 16K global
> variables. and -fPIC will fail on the 68000 (are there still 68000s
> out there?).
FWIW, Coldfire targets, like the 68000, are also restricted to 16-bit offsets.
Richard