Wish to change dependency filenames in shared library

Randy Sargent rsargent@mail.arc.nasa.gov
Fri Jul 12 20:51:00 GMT 2002


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




More information about the Binutils mailing list