From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 12:22:00 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B90A106568B; Thu, 13 Nov 2008 12:22:00 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from webmailfront01.ispgateway.de (webmailfront01.ispgateway.de [80.67.16.111]) by mx1.freebsd.org (Postfix) with ESMTP id C64478FC18; Thu, 13 Nov 2008 12:21:59 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from webmailfront01.ispgateway.de (localhost [127.0.0.1]) by webmailfront01.ispgateway.de (8.14.0/8.14.0) with ESMTP id mADCLwQF028924; Thu, 13 Nov 2008 13:21:58 +0100 Received: (from nobody@localhost) by webmailfront01.ispgateway.de (8.14.0/8.14.0/Submit) id mADCLvY2028889; Thu, 13 Nov 2008 13:21:57 +0100 Received: from pc51997.klinik.uni-regensburg.de (pc51997.klinik.uni-regensburg.de [132.199.174.149]) by webmail.df.eu (Horde MIME library) with HTTP; Thu, 13 Nov 2008 13:21:57 +0100 Message-ID: <20081113132157.kvi5u3z2qssswocw@webmail.df.eu> Date: Thu, 13 Nov 2008 13:21:57 +0100 From: Markus Hoenicka To: Jeremy Chadwick References: <18715.28127.306511.577084@yeti.mininet> <20081113042912.GA10018@icarus.home.lan> <20081113090021.less3h5iwwsgwsg4@webmail.df.eu> <20081113081456.GA14564@icarus.home.lan> <20081113092059.gjjufgrxss0gwww0@webmail.df.eu> <20081113082402.GA14906@icarus.home.lan> <20081113121822.GA20600@icarus.home.lan> In-Reply-To: <20081113121822.GA20600@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: domainFACTORY X-Originating-IP: 132.199.174.149 X-Df-WSender: 472582 Cc: freebsd-questions@FreeBSD.org Subject: Re: dlsym can't use handle returned by dlopen? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 12:22:00 -0000 Quoting Jeremy Chadwick : > As promised: http://www.malkavian.com/~jdc/myprog.tar.gz > > I couldn't figure out what the gcc flag was that I needed to keep > certain characters from getting prepended to the symbol names. I > believe the char added was an underscore, but I could be wrong. > > Either way, the example should help you, I think. (You can change > RTLD_LAZY to RTLD_NOW and it still functions as expected) > Thanks a lot, I'll have a look at it when I get home tonight. regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de