[fpc-devel] OSv PIE support
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Sun Aug  3 13:16:05 CEST 2014
    
    
  
On 03/08/14 13:04, Jy V wrote:
> On Ubuntu 14.04 Desktop, I tried to look at option offered in Lazarus
> 1.3 FPC 2.6.5 (as pulled using FPCUP),
> but I am not able to locate in the IDE the option to compile a PIE,
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.
Jonas
    
    
More information about the fpc-devel
mailing list