Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 29 Jun 2013 12:39:35 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: dlinfo

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

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.