From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3511 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: dlinfo Date: Sun, 30 Jun 2013 10:00:02 +0100 Message-ID: References: <20130629155359.GJ29800@brightrain.aerifal.cx> <20130629163117.GL29800@brightrain.aerifal.cx> <20130629163935.GM29800@brightrain.aerifal.cx> <20130629164815.GN29800@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1372582817 18770 80.91.229.3 (30 Jun 2013 09:00:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2013 09:00:17 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3515-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 30 11:00:20 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UtDUW-0006QP-UL for gllmg-musl@plane.gmane.org; Sun, 30 Jun 2013 11:00:17 +0200 Original-Received: (qmail 3743 invoked by uid 550); 30 Jun 2013 09:00:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3731 invoked from network); 30 Jun 2013 09:00:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ifFDBXcdb4+WPKzMFjFu6ZuUTfCcKBQ8RpcESrr1nC0=; b=RjrL3lpVwOOJNE+2mFXlsbHKwUwNmLM8BVObfneS9f8ZdhsJOT8CkrQn6O+ucocKYD 6xCKX40C/gC67sUNQZUG+gOikosq25gXcuw0hqpqw6iCSY3bDmfLIDRH02WIuL3kQP72 T2E0pxqBDzRzNz8z+YNhc1wotKHT96nlSyuLs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=ifFDBXcdb4+WPKzMFjFu6ZuUTfCcKBQ8RpcESrr1nC0=; b=PvXeBmKdPYm+075Q46s2LdB2caYSQz5irvXO6trDvyNGd5MY+pi9F4teYZ+SY3wTrY oXcL/NymBIC+TTBHiYMvSU/8QJgFCbvLk8VO7MIhPDg8I7EcWpofkoyikDqMzLKHukcM R/9ehTlOx4d2vhtEmCkovi73IE3MQ7dZbZ7172UPbAcrsf/f8v8zSufjhQXQe7shxq+V h6OiPbWqVYRNaV7q5/sgVKW0fAdM9ZsbOCzNbaV/hjWJUHBOUI0NhCw/rXrmxSQqh3yo B8JVDkNWWJJSZvP1ZHO8XTznNa70tCQkmRZITHf35pWuGtJzzUH9MlulvmlStY41AglZ TwAw== X-Received: by 10.68.134.103 with SMTP id pj7mr18659850pbb.171.1372582802568; Sun, 30 Jun 2013 02:00:02 -0700 (PDT) In-Reply-To: <20130629164815.GN29800@brightrain.aerifal.cx> X-Gm-Message-State: ALoCoQkUQtlviX+UyJ0b+Q1Rq50eHELyYkRKOOAnHi5Az72uTpA6AejIjPConKxFhCzpVgvg8kqW Xref: news.gmane.org gmane.linux.lib.musl.general:3511 Archived-At: On Sat, Jun 29, 2013 at 5:48 PM, Rich Felker wrote: > On Sat, Jun 29, 2013 at 05:43:12PM +0100, Justin Cormack wrote: >> On 29 Jun 2013 17:39, "Rich Felker" wrote: >> > >> > On Sat, Jun 29, 2013 at 05:34:46PM +0100, Justin Cormack wrote: >> > > > As a quick workaround then: >> > > > >> > > > -D'dlinfo(x,y,z)=(*(struct link_map *)(z) = (void *)(x))' >> > > > >> > > > Kidding aside, I wouldn't actually recommend this, since you'd be >> > > > encoding implementation internals (the fact that the dso handle is >> > > > actually the link_map pointer) into the application, which could badly >> > > > break if the implementation is ever changed. I'll just go ahead and >> > > > add this limited version of dlinfo; look for it soon and ping me if >> > > > you don't see it. >> > > >> > > Thanks! >> > >> > One more question: does RTLD_SELF need to work? That's a lot harder >> > and uglier, as it requires extra asm for each arch... >> > >> > Rich >> >> I don't think so. > > OK. It's implemented but untested. Take a look at current git and see > if it meets your needs. Haven't been able to test yet as I have further build issues, will report back later... Thanks very much Justin