"Bradley D. LaRonde" <brad@xxxxxxxxxxx> writes: > Even though it is pointing libdl to the libpthread stub for malloc, should > it crash? Yeah. When you call a stub, $gp must already be set to the owning object's _gp. That's how the dynamic loader knows which GOT to change. In your case, libdl will be calling libpthread's stub with $gp set to libdl's _gp. The dynamic loader will therefore end up trying to change libdl's GOT, not libpthread's. Richard