[fpc-pascal] GCC -PIE equivalent?

Sven Barth pascaldragon at googlemail.com
Fri Nov 13 18:45:03 CET 2015


Am 13.11.2015 16:05 schrieb "Adriaan van Os" <fpc at microbizz.nl>:
>
> Jon Foster wrote:
>>
>> If I build a standard "program" (not library) with -Cg do I get a PIE...
>> or does that only affect linking for libraries? I haven't been able to
>> find anything on the iNet regarding PIE and FPC.
>
>
> Wouldn't that just be a linker option, passed-on to ld ?

Not if the compiler needs to ensure that the code it generates is generated
position independently as well. I don't know though in how far the
requirements for PIC are different from PIE.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20151113/d8e53fa2/attachment.html>


More information about the fpc-pascal mailing list