From owner-freebsd-hackers Mon Nov 23 14:43:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA27593 for freebsd-hackers-outgoing; Mon, 23 Nov 1998 14:43:02 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA27587 for ; Mon, 23 Nov 1998 14:43:00 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id OAA20186; Mon, 23 Nov 1998 14:42:41 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id OAA00812; Mon, 23 Nov 1998 14:42:28 -0800 (PST) (envelope-from jdp@polstra.com) Date: Mon, 23 Nov 1998 14:42:28 -0800 (PST) Message-Id: <199811232242.OAA00812@vashon.polstra.com> To: nate@mt.sri.com Subject: Re: Wrapping a function Newsgroups: polstra.freebsd.hackers In-Reply-To: <199811221425.HAA21510@mt.sri.com> References: <199811170517.WAA22627@mt.sri.com> <199811220702.CAA01604@rochester.rr.com> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199811221425.HAA21510@mt.sri.com>, Nate Williams wrote: > > In recent gnu ld's: > > `--wrap SYMBOL' > > Use a wrapper function for SYMBOL. Any undefined reference to > > SYMBOL will be resolved to `__wrap_SYMBOL'. Any undefined > > reference to `__real_SYMBOL' will be resolved to SYMBOL. > > Cool! Does our ld do this? I doubt if the a.out one does. But it should work in the ELF linker. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message