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
architecture).
(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
doable.)
-Michael
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel