[PATCH] dl: fix dlsym lookups with RTLD_NEXT

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Jan 9 09:11:47 UTC 2013


On 8 January 2013 10:55, Timo Teräs <timo.teras at iki.fi> wrote:
> The current code for dlsym() when invoked with RTLD_NEXT lookup
> searches for the module where it's being called from, and executes the
> _dl_find_hash only for the next module in the chain. However, if the
> looked symbol is not there, the rest of the modules are not checked.
>
> Generally this is not a problem as symbols are merged for the parent
> modules; so this affects only RTLD_NEXT.
>
> This patch adds a loop iterating through all the following modules.

applied, thanks!

PS: missing end-tag in your SOB line.


More information about the uClibc mailing list