[fpc-pascal] Smart link in FreeBSD multi-arch ?
mailinglists at geldenhuys.co.uk
Mon Oct 17 15:30:36 CEST 2016
On 2016-10-17 13:55, fredvs wrote:
> So it seems that garbage collection must be enabled to do a smartlink.
I'm not sure I follow you. From what I understand from the FPC
documentation, is that FPC (when smartlinking is enabled) generates
multiple object files per unit, trying to make a object file per procedure.
It is then the linkers job to link only the object files that are needed
(and really used in the application) to make the executable. How the
linker does that is beyond my knowledge.
> There in FreeBSD forum, they cannot admit that fpc uses *--gc-sections*
> option in ld when fpc -XX is used.
I guess showing them the content of the ppas.sh file is all that they
should need as proof. The alternative (if you know exactly what the
problem is), is to modify the ld linker yourself and see if it then
works on your system. If so, send them a patch.
Some developers are harder to convince about potential problems or bugs.
The FreeBSD developers are definitely not the only ones.
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the fpc-pascal