This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dlsym() does not return local symbol address


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Jacobowitz wrote:
> On Thu, Nov 23, 2006 at 05:06:06PM -0500, Martin Gadbois wrote:
>> Is this a bug? Or is it my interpretation of "man dlsym"?
> 
> It's not a bug.  It only can identify dynamic symbols, and by default
> application symbols are not dynamic.  Look at the linker -rdynamic
> documentation for more.
> 

Compiling/linking with -rdynamic make it work! Many thanks!

- --
==============         +----------------------------------------------+
Martin Gadbois         | "Windows might take you from 0 to 60 faster, |
S/W Developer          |  but to go to 100 you need Unix."            |
Colubris Networks Inc. +----------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFZzS79Y3/iTTCEDkRAo7zAJ4jGwl4i3ypMjKJ9lyAI5TAXl2EYACfX8Nn
kGn1dOIICdT3SYI4V51MPzE=
=Ahkp
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]