From owner-freebsd-hackers Tue Nov 17 06:16:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA16727 for freebsd-hackers-outgoing; Tue, 17 Nov 1998 06:16:45 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA16713 for ; Tue, 17 Nov 1998 06:16:25 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA20529; Tue, 17 Nov 1998 13:18:11 +0100 From: Luigi Rizzo Message-Id: <199811171218.NAA20529@labinfo.iet.unipi.it> Subject: Re: Wrapping a function To: rivers@dignus.com (Thomas David Rivers) Date: Tue, 17 Nov 1998 13:18:10 +0100 (MET) Cc: hackers@FreeBSD.ORG, nate@mt.sri.com In-Reply-To: <199811171348.IAA11670@lakes.dignus.com> from "Thomas David Rivers" at Nov 17, 98 08:48:21 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Does anyone have an easy way of 'wrapping' an already existing library > > function so that any programs linked against your .o will call your > > function, but so your function can call the 'real' library function? ... I am not sure about the details, but for sure a look at crunchide/cruncgen would help. I think these programs play with the linker's symbol tables and if they can hide symbols almost surely they can be used (with small mods) to rename symbols. luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message