> -----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:
> > 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 accomplished this without having to dissect the
> ELF object, change
> > it
> > and reconstruct the pieces?
>
> void bar(void) {
> yo();
> }
>
> perhaps?
No, not wanting to re-compile anything.
>
> > Thanks.
>
> --
>
> John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
> PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
> "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message