🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52902

Re: ld?

#52902
From: Ross Huitt
Date: Thu, 30 Apr 1992 15:56
27 lines
2036 bytes
In article <JNREES.92Apr30084121@tofu.mit.edu>, jnrees@athena.mit.edu (Jim Rees) writes:

|> 
|> I wanted an ANSI compiler for the Sun4's I work on, so I got gcc-2.1.
|> When I realized this didn't give me all the ANSI header files I
|> needed, I then fetched glibc-1.03.  The documentation for glibc
|> strongly recommends using GNU ld, but I'm not sure if I've got this or
|> not.  A file named ld gets created by install-collect2 in the gcc
|> Makefile, but I didn't plan on using C++ or Objective C, so I didn't
|> run this.  Is *this* GNU ld, or is it something else?  
|> 
|> 	Jim

The following comments relate to gcc2.x for sparcs. Your mileage may vary.

The ld created by install-collect2 is a wrapper for another linker. The is usually
the system ld or GNU's linker, gld. gld is part of the binutils distribution from
FSF. You do not need to run install-collect2 if you are just building C systems.
It is required for C++. I don't know about Objective-C. Supposedly you can use
gld without collect2. gld does resolve static constructors correctly but it gets
a little flakey when it comes to dealing with shared libraries. I haven't had the
chance to file a bug report yet. Using the collect2 ld and letting it call the system
ld seems to work fine. I'd rather just gld, but it ain't quite there yet.


Ross Huitt
bytor@ctt.bellcore.com
Technical Details
Message-ID: <1992Apr30.155608.22804@walter.bellcore.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!jvnc.net!rutgers!bellcore!walter!grumpy!bytor
References: <JNREES.92Apr30084121@tofu.mit.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,1d55dda4f499325
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-04-30 08:56:08 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!jvnc.net!rutgers!bellcore!walter!grumpy!bytor
From: bytor@grumpy.bellcore.com (Ross Huitt)
Newsgroups: gnu.gcc.help
Subject: Re: ld?
Message-ID: <1992Apr30.155608.22804@walter.bellcore.com>
Date: 30 Apr 92 15:56:08 GMT
References: <JNREES.92Apr30084121@tofu.mit.edu>
Sender: bytor@grumpy (Ross Huitt)
Distribution: gnu
Organization: Bellcore
Lines: 27
Nntp-Posting-Host: grumpy.ctt.bellcore.com