This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linking on Solaris


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]