[fpc-devel] PIC support for x86_64
Dominique Leducq
dleducq at magellan-ing.fr
Mon Oct 2 11:33:23 CEST 2006
Florian Klaempfl a écrit :
> Dominique Leducq wrote:
>
>> Could someone please tell me about the status of PIC support for x86_64
>> in FPC ?
>>
>> Is it supported in fpc 2.0.4 ?
>> Is it supposed to work in 2.1.1 ? If yes, which revision(s) ? If no,
>> will it be any time soon ?
>>
>
> It is supposed to work in 2.1.1 trunk.
>
>
>> I need to produce a shared library for x86_64 Linux with fpc.
>> AFAIK, GNU ld needs PIC to link a shared library for x86_64.
>>
>> So I need to know quite rapidly about that matter, in order to take
>> appropriate decisions.
>>
>> Thanks for your answers,
>>
>> Dominique Leducq
>>
>>
>> _______________________________________________
>> fpc-devel maillist - fpc-devel at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>>
>
>
So here are the results of my tests : PIC compilation for x86_64 with
Fpc 2.1.1 is broken since revision 3902 (june 20), that is since the
default assembler switched from GNU As (gas) to internal one.
Compiling with -Cg -Aas actually works.
Without -Aas, there is no difference in the object code generated
wether you use the -Cg flag or not, and you get an "recompile with
-fPIC" error when trying to link a DSO with GNU ld.
Dominique Leducq
More information about the fpc-devel
mailing list