[PATCH] Fix dladdr return value when cannot find symbol

Bernd Schmidt bernds_cb1 at t-online.de
Mon Jan 21 12:10:51 UTC 2008


Carmelo AMOROSO wrote:
> based on  the patch from Nickolai, here you can find a comprehensive
> patch to fix
> dladdr function.
> 
> With the current implementation, the invocation of dladdr((void *) 1,
> &dlinfo)
> will fill dlinfo.dli_fname with the name of the application itself and
> dlinfo.dli_fbase with 0 (the current value of tpnt->loadaddr for the
> main app).

Could you put a testcase for this into tests/?


Bernd
-- 
This footer brought to you by insane German lawmakers.
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif



More information about the uClibc mailing list