This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wish to change dependency filenames in shared library


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.
> >
> >
> >
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]