Lines Matching refs:code
6 @chapter @code{collect2}
8 GCC uses a utility called @code{collect2} on nearly all systems to arrange
11 The program @code{collect2} works by linking the program once and
20 called @code{__main}, which is called (automatically) at the beginning
21 of the body of @code{main} (provided @code{main} was compiled with GNU
22 CC)@. Calling @code{__main} is necessary, even when compiling C code, to
23 allow linking C and C++ object code together. (If you use
24 @option{-nostdlib}, you get an unresolved reference to @code{__main},
28 The program @code{collect2} is installed as @code{ld} in the directory
29 where the passes of the compiler are installed. When @code{collect2}
30 needs to find the @emph{real} @code{ld}, it tries the following file
40 @code{PATH}.
43 The file specified in the @code{REAL_LD_FILE_NAME} configuration macro,
48 @code{collect2} will not execute itself recursively.
51 @file{ld} in @code{PATH}.
65 @file{@var{target}-real-ld} in @code{PATH}.
68 The file specified in the @code{REAL_LD_FILE_NAME} configuration macro,
75 @file{@var{target}-ld} in @code{PATH}.
78 @code{collect2} explicitly avoids running @code{ld} using the file name
79 under which @code{collect2} itself was invoked. In fact, it remembers
80 up a list of such names---in case one copy of @code{collect2} finds
81 another copy (or version) of @code{collect2} installed as @code{ld} in a
84 @code{collect2} searches for the utilities @code{nm} and @code{strip}
85 using the same algorithm as above for @code{ld}.