linking on Solaris
Ingo Krabbe
ikrabbe.ask@web.de
Tue Sep 6 20:07:00 GMT 2005
Am Dienstag, 6. September 2005 20:31 schrieb Ivan Novick:
> Currently we use ld as a linker on Solaris.
>
> Is there a gcc linker and is this preferable to using ld?
>
> Thanks for any input?
>
> Ivan
As a kind of fast shooting answer I would assume that gcc calls the native
solaris linker ld in the linking stage, trading all those arguments to the
linker that are prefixed with -Wl .
For a more detailed description about the linking stage you should refer to
the manual and info pages of gcc.
GCC doesn't link on its own. There is a process called collect2 (called from
gcc) which is a wrapper around the native linker as I remember. You can see
the exact arguments to these gcc processing stages by using
gcc -v $*
BYE INGO
More information about the Gcc-help
mailing list