Am 13.11.2015 16:05 schrieb "Adriaan van Os" <f...@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
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal