[PATCH] Fix dladdr return value when cannot find symbol

Nickolai Zeldovich nickolai at cs.stanford.edu
Fri Nov 30 05:47:58 UTC 2007


The attached patch makes dladdr() return 0 when it cannot find a matching
symbol.  The current behavior of returning 1 makes it impossible for callers
to know whether the supplied Dl_info buffer has been filled in with
meaningful data.

Nickolai.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20071129/73a9d79a/attachment-0002.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uclibc-dladdr-return.patch
Type: application/octet-stream
Size: 410 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20071129/73a9d79a/attachment-0002.obj 


More information about the uClibc mailing list