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]

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


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