[fpc-pascal] Smart Link definition ?
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Oct 11 08:42:52 CEST 2016
fredvs wrote:
> In ld doc:
> http://sourceware.org/binutils/docs-2.16/ld/Options.html
> <http://sourceware.org/binutils/docs-2.16/ld/Options.html>
>
> => -X --discard-locals
> Delete all temporary local symbols. For most targets, this is all local
> symbols whose names begin with L.
>
> I guess that the fpc compiler option -CX is using that ld option -X to
> "smart-link" their program.
> Without any "customization" (yes/no ?).
>
> If so, ld is responsable of the "smart-linking" and fpc has nothing to do
> with it (yes/no ?).
None of the above has anything to do with smart linking/dead code
stripping. It's about removing symbols (not the code/data they point to)
from the symbol table of the linked program.
Jonas
More information about the fpc-pascal
mailing list