[fpc-devel] OSv PIE support

Michael Schnell mschnell at lumino.de
Mon Aug 4 10:30:57 CEST 2014

On 08/03/2014 01:16 PM, Jonas Maebe wrote:
> A position-independent executable is simply an executable that only 
> contains position-independent code and that is linked with the "-pie" 
> linker option. So compiling all code with -Cg (the standard FPC RTL 
> and packages are compiled like that by default on Linux/x86-64) and 
> then linking your application with the -kpie command line option 
> should be enough.
Sounds good.

Is "-Cg" available for all archs ?

I.e., I would (on the long run) like to do a kind of "loadable modules" 
that can be accessed by software done in ANSI C on a PIC32 (a MIPS 
(Another option would be to have the Microchip IDE link-in a .o file 
created by fpc I don't know which of  the possibilities would be more 


More information about the fpc-devel mailing list