Exhaustively Read Libraries (–X Option) - Texas Instruments TMS320C54x User Manual

Digital signal processors
Table of Contents

Advertisement

Linker Options
7.4.20 Exhaustively Read Libraries (–x Option)
7-20
The linker normally reads input files, including archive libraries, only once
when they are encountered on the command line or in the command file. When
an archive is read, any members that resolve references to undefined symbols
are included in the link. If an input file later references a symbol defined in a
previously read archive library, the reference will not be resolved.
With the –x option, you can force the linker to reread all libraries. The linker
rereads libraries until no more references can be resolved. Linking using the
–x option may be slower, so you should use it only as needed. For example,
if a.lib contains a reference to a symbol defined in b.lib, and b.lib contains a
reference to a symbol defined in a.lib, you can resolve the mutual
dependencies by listing one of the libraries twice, as in:
lnk500 –la.lib –lb.lib –la.lib
or you can force the linker to do it for you:
lnk500 –x –la.lib –lb.lib

Advertisement

Table of Contents
loading

Table of Contents