From owner-freebsd-hackers Tue Dec 21 12:14:12 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from merc92.us.sas.com (merc92.us.sas.com [192.58.184.17]) by hub.freebsd.org (Postfix) with ESMTP id A2C0715502 for ; Tue, 21 Dec 1999 12:14:10 -0800 (PST) (envelope-from David.Quattlebaum@sas.com) Received: by merc92.us.sas.com with Internet Mail Service (5.5.2650.21) id ; Tue, 21 Dec 1999 15:14:07 -0500 Message-ID: <5FA575D78630D3118B2E0090276DC89F01B59270@merc08.us.sas.com> From: David Quattlebaum To: 'FreeBSD Hackers' Subject: modifying an object file Date: Tue, 21 Dec 1999 15:14:00 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? Thanks. -- David Quattlebaum, (david.quattlebaum@sas.com ) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message