Subject: Re: ELF & ld -Bshareable ?
To: Jaromir Dolecek <dolecek@ics.muni.cz>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: current-users
Date: 05/12/1998 15:08:04
On May 12, 10:35pm, Jaromir Dolecek wrote:
> Is it possible to use
>       ld -Bshareable -o shareable_object some_fpic_obj.o
> or do I HAVE to use
>       ld -shared -o shareable_object some_fpic_obj.o
> on archs using ELF ?

Yes, but -Bshareable may not be supported indefinitely.

The real problem is -Bforcearchive, which is dead and buried years ago
in the GNU source. It's replaced with positional qualifiers to turn
`force into archive' on/off for subsequent objects.

If you have access to -current, see the manpage for a.out ld, where I
added compatibility for the obsolete flags.  IMO, that should've been
pulled up for the next release, for the reasons stated.