This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Wish to change dependency filenames in shared library
- From: "Randy Sargent" <rsargent at mail dot arc dot nasa dot gov>
- To: "\"Syed Faisal Akber\"" <faisal at AKBER dot NET>, <binutils at sources dot redhat dot com>
- Date: Fri, 12 Jul 2002 22:40:51 -0700
- Subject: Re: Wish to change dependency filenames in shared library
- References: <Pine.GSO.4.44.0207130031570.17050-100000@SERVER1.AKBER.NET>
Hi Faisal,
Thanks for the advice.
I actually do need to change the names of the libraries inside the binary.
Changing the runtime library search path unfortunately doesn't achieve what
I am looking for.
-- Randy
Randy Sargent
Computer Scientist
Intelligent Robotics Group
NASA Ames Research Center / QSS, Inc.
----- Original Message -----
From: "Syed Faisal Akber" <faisal@AKBER.NET>
To: "Randy Sargent" <rsargent@mail.arc.nasa.gov>
Cc: <binutils@sources.redhat.com>
Sent: Friday, July 12, 2002 9:34 PM
Subject: Re: Wish to change dependency filenames in shared library
> Hi Randy,
>
> Correct me if I'm wrong. I understand that if you set the LD_LIBRARY_PATH
> environment variable you do not need to change the hard coded values in
> the compiled ELF binary. The loader should be smart enough to check this
> path to find the libraries required.
>
> Since you are using Linux, you can also look at modifying /etc/ld.so.conf
>
> Regards,
> Faisal
>
> On Fri, 12 Jul 2002, Randy Sargent wrote:
>
> > I have a need to modify dependency filenames in a shared library (elf,
Linux
> > x86 if relevant). It appears to me that the dependency filenames are
> > included in the .dynstr section. Is there a reasonable way to modify
these
> > filenames, either with a pre-existing utility, or by writing a simple
> > program using libbfd? (Assume that I do not have the ability to rebuild
the
> > library which needs to be modified).
> >
> > Thanks.
> >
> > -- Randy
> >
> > Randy Sargent
> > Computer Scientist
> > Intelligent Robotics Group
> > NASA Ames Research Center / QSS, Inc.
> >
> >
> >
>