Search notes:
GCC linker
The linker reads
object files
and combines them to create a runnable program (executable).
The linker can be invoked directly
ld
or indirectly via
gcc
.
When invoked via
gcc
, options can be passed to the linker with
-Wl,option
.
gcc
doesn't invoke the linker if it is run with the
-c
,
-E
or
-S
option.
See also
Linker options
GCC
Index