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