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. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal