[PATCH] Fix dladdr return value when cannot find symbol

Nickolai Zeldovich nickolai at cs.stanford.edu
Thu Nov 29 21:47:58 PST 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://busybox.net/lists/uclibc/attachments/20071129/73a9d79a/attachment.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://busybox.net/lists/uclibc/attachments/20071129/73a9d79a/attachment.obj 


More information about the uClibc mailing list