From owner-freebsd-hackers Sun Mar 9 08:01:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA26436 for hackers-outgoing; Sun, 9 Mar 1997 08:01:06 -0800 (PST) Received: from hellcat.umd.edu (hellcat.umd.edu [129.2.70.125]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA26430 for ; Sun, 9 Mar 1997 08:01:01 -0800 (PST) Received: from maryann.eng.umd.edu (maryann.eng.umd.edu [129.2.103.22]) by hellcat.umd.edu (8.8.5/8.8.5) with ESMTP id LAA12357; Sun, 9 Mar 1997 11:00:59 -0500 (EST) Received: from localhost (chuckr@localhost) by maryann.eng.umd.edu (8.8.5/8.6.4) with SMTP id LAA08964; Sun, 9 Mar 1997 11:00:58 -0500 (EST) X-Authentication-Warning: maryann.eng.umd.edu: chuckr owned process doing -bs Date: Sun, 9 Mar 1997 11:00:57 -0500 (EST) From: Chuck Robey X-Sender: chuckr@maryann.eng.umd.edu To: "Jordan K. Hubbard" cc: hackers@freebsd.org Subject: Re: gcc -shared as substitute for ld -Bshareable? In-Reply-To: <24425.857903930@time.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 9 Mar 1997, Jordan K. Hubbard wrote: > I've been working with some large software packages which seem > to assume that ``gcc -shared ..objs.. -o outfile'' is equivalent > to our more familiar ``ld -Bshareable ..objs.. -o outfile'', but > the former doesn't work under FreeBSD - a full link is attempted. > > Examining these build files, it really does look like Linux and SunOS > gcc supports -shared flag handling semantics rather different than > ours. Any reason we should be gratuitously different? Shall I file a > PR against this, or is it someone's idea of a feature? :-) I'm going to reply to this, and to your question about the GOT relocation messages. Yes, I can't see any reason not to support -shared. It won't break anything going in, and it'll ease porting, since other Unix software authors expect it to work (from the gcc docs). I hit that same trouble with the GOT relocation blurbs, in connection with global visibility of virtual tables of templated functions, WRT to Octave. JDP and I discussed it, but couldn't locate the source of it then. It didn't have any effect outside of things I expected to find as "T" symbols coming up as "t" symbols. I programmed around it, unfortunately, which wasn't a very satisfying answer. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------