Re: modifying an object file

1999-12-22 Thread Ronald G. Minnich
you can do this kind of thing with the bfd tools ... ron To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

RE: modifying an object file

1999-12-21 Thread Thomas David Rivers
David - The man page for the ELF linker says: ld accepts Linker Command Language files to provide ex- plicit and total control over the linking process. This man page does not describe the command language; see the `ld' entry in `info', or the manual ld: the

RE: modifying an object file

1999-12-21 Thread David Quattlebaum
> -Original Message- > From: John Baldwin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 21, 1999 3:26 PM > To: David Quattlebaum > Cc: FreeBSD Hackers > Subject: RE: modifying an object file > > > > On 21-Dec-99 David Quattlebaum wrote: > > An

RE: modifying an object file

1999-12-21 Thread John Baldwin
On 21-Dec-99 David Quattlebaum wrote: > Anyone, > > I have an object file: foo.o > > In foo.o I have a call to bar(). > > Now, I want foo.o to actually call yo() instead of bar() and say I don't have > the source > for foo.c (so recompiling is out of the question). I want to change the > objec

Re: modifying an object file

1999-12-21 Thread Warner Losh
In message <[EMAIL PROTECTED]> David Quattlebaum writes: : Has anyone accomplished this without having to dissect the ELF object, change it : and reconstruct the pieces? Change the string table. This is the time honored way of kludging binaries to do things that the original .o's were never int

modifying an object file

1999-12-21 Thread David Quattlebaum
Anyone, I have an object file: foo.o In foo.o I have a call to bar(). Now, I want foo.o to actually call yo() instead of bar() and say I don't have the source for foo.c (so recompiling is out of the question). I want to change the object file foo.o to call yo() instead of bar(). Has anyone ac