Hi,
I originally reported this for uClibc but I think it might be interesting for uclibc-ng as well (or even more since original uClibc gets more and more stale):
See https://bugs.busybox.net/show_bug.cgi?id=8611
Maybe you also find a better approach as the one I implemented.
- ron