[fpc-pascal] Smart Link definition ?

fredvs fiens at hotmail.com
Tue Oct 11 02:28:54 CEST 2016


Huh, sorry, it is me again...

About ld (the linker).

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 ?).

And, of course, if it is the case, it should be the responsibility of ld to
take care about the sym-link that he creates. (yes/no?)

Many thanks. 

Fre;D



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Smart-Link-definition-tp5726480p5726518.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list