Article View: comp.archives
Article #490[comp.sys.3b1] collect for gcc/g++ 2.2.2
From: Andy Fyfe
Date: Fri, 21 Aug 1992 08:22
Date: Fri, 21 Aug 1992 08:22
32 lines
2149 bytes
2149 bytes
Archive-name: auto/comp.sys.3b1/collect-for-gcc-g-2-2-2 I've merged the functionality of shld into collect2 version 2.2.2. When installed as /usr/local/lib/gcc-lib/3b1/2.2.2/ld it will handle the global constructors and destructors for g++, as well as only use the shared library to resolve otherwise unknown symbols (just as shld does for "gcc -shlib" alone, and shcc does as a replacement for cc). The file can be picked up as collect.shar.Z in the directory pub/3b1 on ftp.cs.caltech.edu. It contains the unlinked objects for collect2. If you prefer to compile collect2 yourself, diffs for the sources are included. It will create an additional C source file that contains the information in /lib/shlib.ifile (which is included when making collect) as well as a library libminic.a that contains the routines from libc.a that are not contained in the shared library. This information varies depending on the version of the OS, so I haven't included a binary. Over the next week or two I'll look at compiling groff 1.5 with g++ 2.2.2 (actually cross compile, but I needed collect2 working since linking must be done on the 3b1). cc1plus isn't in the gcc2 binary distribution. You can pick up the tar file pub/3b1/gcc2-objects/cc1plus.tar.Z, extract all the .o files, and link them together to get cc1plus. I've haven't been able to link cc1plus with the shared library (shld and collect2 both dump core -- I'm don't know why), but there's no problem if you don't use the shared library. gcc -o cc1plus *.o Andy Fyfe andy@cs.caltech.edu
Technical Details
Message-ID:
<17293uINNgtk@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!agate!usenetReferences:
<1992Aug16.023044.22052@cco.caltech.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!agate!usenet From: andy@cs.caltech.edu (Andy Fyfe) Newsgroups: comp.archives Subject: [comp.sys.3b1] collect for gcc/g++ 2.2.2 Followup-To: comp.sys.3b1 Date: 21 Aug 1992 08:22:22 GMT Organization: California Institute of Technology Lines: 33 Approved: adam@soda.berkeley.edu Distribution: world Message-ID: <17293uINNgtk@agate.berkeley.edu> References: <1992Aug16.023044.22052@cco.caltech.edu> NNTP-Posting-Host: soda.berkeley.edu X-Original-Newsgroups: comp.sys.3b1 X-Original-Date: 16 Aug 92 02:30:44 GMT