This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Forcing all SGI-compatible DSOs to use DT_SONAME
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Eric Christopher <echristo at redhat dot com>
- Cc: Richard Sandiford <rsandifo at redhat dot com>,binutils at sources dot redhat dot com
- Date: Wed, 7 Apr 2004 11:27:20 +0930
- Subject: Re: Forcing all SGI-compatible DSOs to use DT_SONAME
- References: <20040205181641.GA25051@nevyn.them.org> <Pine.LNX.4.44.0402251120210.3059-100000@zcar.ghs.com> <20040229215738.GA32679@nevyn.them.org> <20040308202458.GA28949@nevyn.them.org> <87d67nxaeb.fsf@redhat.com> <20040329183717.GA26296@nevyn.them.org> <87n05uzxvt.fsf@redhat.com> <871xn0zwvb.fsf_-_@redhat.com> <1081285641.3739.0.camel@dzur.sfbay.redhat.com>
On Tue, Apr 06, 2004 at 02:07:21PM -0700, Eric Christopher wrote:
>
> > Can anyone see any potential problems with doing this? If not, is the
> > patch OK to install? OK for 2.15 too?
>
> I don't see any problems with it. Seems like a nice solution to the
> problem.
>
> Alan? Nick?
I think it would be better to avoid adding a bfd_target hook in this
case. Instead, you should hook into the linker to set
command_line.soname. See ppc64elf.em for examples of how to add
target dependent linker functions in a way that has zero impact on
other targets. LDEMUL_AFTER_OPEN is probably the right place.
--
Alan Modra
IBM OzLabs - Linux Technology Centre