[fpc-pascal] GCC -PIE equivalent?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal