This is the mail archive of the
mailing list for the binutils project.
Wish to change dependency filenames in shared library
- From: John Reiser <jreiser at BitWagon dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 12 Jul 2002 18:47:56 -0700
- Subject: Wish to change dependency filenames in shared library
- Organization: -
> 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