From owner-freebsd-hackers Thu Aug 3 4:10:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from viper.dmpriest.com (viper.dmpriest.com [195.188.177.3]) by hub.freebsd.org (Postfix) with ESMTP id BF4F837B643 for ; Thu, 3 Aug 2000 04:10:19 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca.tdx.co.uk [195.188.177.195]) by viper.dmpriest.com (8.9.3/8.9.3/Kp) with ESMTP id MAA46501; Thu, 3 Aug 2000 12:10:07 +0100 (BST) Message-ID: <3989530F.F3D89C6F@tdx.co.uk> Date: Thu, 03 Aug 2000 12:10:07 +0100 From: Karl Pielorz Organization: TDX - The Digital eXchange X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: "Daniel O'Connor" Cc: hackers@freebsd.org Subject: Re: LD_PRELOAD odities / Documentation? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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