Date: Thu, 03 Aug 2000 12:10:07 +0100 From: Karl Pielorz <kpielorz@tdx.co.uk> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: hackers@freebsd.org Subject: Re: LD_PRELOAD odities / Documentation? Message-ID: <3989530F.F3D89C6F@tdx.co.uk> References: <XFMail.000803200004.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel O'Connor wrote: > > On 03-Aug-00 Karl Pielorz wrote: > > Any pointers would be greatefuly received, unfortunately this all works > > under > > Linux (I'm not bashing anyone on the head with that, I'm far more interested > > in getting it working under FreeBSD)... > > I think the problem is that your calls are being resolved to your own library > first, so that is the routine being called. > > AFAIK you have to build a set of pointers to the original (ie libc) routines. I > know esound work with its esddsp program, so you could look there for some tips. Thanks for the reply! Sorry, I should have posted more details - I'll have a look at the reference you mentioned... re. Calling library Routines: One of the ways I've tried implementing syscalls is to dlopen() the correct library, and fetch the routines address from there (using dlsym) - and calling the routine that way... This doesn't seem to help though :( -Karl 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?3989530F.F3D89C6F>