[fpc-pascal] Smart Link definition ?
fiens at hotmail.com
Tue Oct 11 19:50:50 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.
Hello and thanks for answer.
OK, so what fpc does if -XX is used ?
Does fpc sent some parameters to ld and if yes what parameters ?
Many thanks ;-)
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Smart-Link-definition-tp5726480p5726536.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal