[fpc-pascal] Smart Link definition ?
jonas.maebe at elis.ugent.be
Tue Oct 11 08:42:52 CEST 2016
> In ld doc:
> => -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.
More information about the fpc-pascal