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


John,

Thanks for the quick reply.

Unfortunately, the new names will often be larger than the old names, so the
required transformation will be a little more complex.

Any other ideas?

-- Randy

Randy Sargent
Computer Scientist
Intelligent Robotics Group
NASA Ames Research Center / QSS, Inc.

----- Original Message -----
From: "John Reiser" <jreiser@BitWagon.com>
To: <binutils@sources.redhat.com>
Sent: Friday, July 12, 2002 6:47 PM
Subject: Wish to change dependency filenames in shared library


> > I have a need to modify dependency filenames in a shared library ...
>
> As long as each string does not increase in length, then use your
> favorite binary file editor.  Find out the relevant addresses using
> objdump, od, etc.  It is also possible to write a short program
> which mmap()s the whole file to memory beginning at address 0,
> MAP_SHARED and with read+write permissions; and run this program under
> gdb.  Then use gdb commands such as "set *(char *) 0x12345 = 'p'".
>
> --
> John Reiser, jreiser@BitWagon.com
>
----- Original Message -----
From: "Randy Sargent" <rsargent@mail.arc.nasa.gov>
To: <binutils@sources.redhat.com>
Sent: Friday, July 12, 2002 12:26 PM
Subject: Wish to change dependency filenames in shared library


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