Hi, the attached patches get rid of nested functions in libdwfl/link_map.c.
I wrote these a while back and just looked at them again and we could use the same read_state struct here as well. I just quickly checked, but it seems a bit more involved due to the integrated_memory_callback handling. I can look into that anyway if required. Thanks, Timm