Subject: Re: Does dladdr() work?
To: None <current-users@netbsd.org>
From: Sourath Roy <sourath@gmail.com>
List: current-users
Date: 11/24/2006 21:28:07
------=_Part_121978_21105850.1164383887329
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I eat my words, it was my mistake as I wasn't linking properly.

-- Sourath

On 11/24/06, Sourath Roy <sourath@gmail.com> wrote:
>
> Hi,
> Sorry if this be a 'bad' question to ask, but being new to NetBSD and
> seeing dladdr() not working the way I expect it to work, this popped up in
> my mind.
>
> I wanted to do something similar to readlink for /proc/self/exe on Linux
> by using dladdr() on NetBSD with a function name in my executable. But
> dladdr() seem to return 0, meaning it doesn't find it. Is there a problem
> with my approach or there is something about dladdr() on NetBSD that I need
> to know, like some other system settings which needs to be done prior to
> calling the function?
>
> Thoughts?
>
> -- Sourath
>
>
>

------=_Part_121978_21105850.1164383887329
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I eat my words, it was my mistake as I wasn't linking properly. <br>
<br>
-- Sourath<br><br><div><span class="gmail_quote">On 11/24/06, <b class="gmail_sendername">Sourath Roy</b> &lt;<a href="mailto:sourath@gmail.com">sourath@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
Sorry if this be a 'bad' question to ask, but being new to NetBSD and
seeing dladdr() not working the way I expect it to work, this popped up
in my mind. <br>
<br>
I wanted to do something similar to readlink for /proc/self/exe on
Linux by using dladdr() on NetBSD with a function name in my
executable. But dladdr() seem to return 0, meaning it doesn't find it.
Is there a problem with my approach or there is something about
dladdr() on NetBSD that I need to know, like some other system settings
which needs to be done prior to calling the function?<br>
<br>
Thoughts?<br><span class="sg">
<br>
-- Sourath<br>
<br>
<br>

</span></blockquote></div><br>

------=_Part_121978_21105850.1164383887329--