raspberrypi/userland — pull request #6 by cheery (2012-11-14 23:28:37+00:00)
Title: One solution to https://github.com/raspberrypi/firmware/issues/112

It is probably a bug that client_tls was not introduced.

This patch imitates the behavior that happens when you load libvcos.so before using thread-local storage in your program, like how node.js is doing. So it might not fix the actual bug.

I don't know enough about the wrapping to do better yet.