Date: Mon, 23 Nov 1998 14:42:28 -0800 (PST) From: John Polstra <jdp@polstra.com> To: nate@mt.sri.com Cc: hackers@FreeBSD.ORG Subject: Re: Wrapping a function Message-ID: <199811232242.OAA00812@vashon.polstra.com> In-Reply-To: <199811221425.HAA21510@mt.sri.com> References: <199811170517.WAA22627@mt.sri.com> <199811220702.CAA01604@rochester.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <199811221425.HAA21510@mt.sri.com>, Nate Williams <nate@mt.sri.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811232242.OAA00812>