Forcing all SGI-compatible DSOs to use DT_SONAME

Alan Modra amodra@bigpond.net.au
Wed Apr 7 01:57:00 GMT 2004


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



More information about the Binutils mailing list