Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 30 Jun 2013 10:00:02 +0100
From: Justin Cormack <justin@...cialbusservice.com>
To: musl@...ts.openwall.com
Subject: Re: dlinfo

On Sat, Jun 29, 2013 at 5:48 PM, Rich Felker <dalias@...ifal.cx> wrote:
> On Sat, Jun 29, 2013 at 05:43:12PM +0100, Justin Cormack wrote:
>> On 29 Jun 2013 17:39, "Rich Felker" <dalias@...ifal.cx> 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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.