[uClibc] Re: uclibc mips ld.so and undefined symbols with nonzero
symbol table entry st_value
Richard Sandiford
rsandifo at redhat.com
Mon May 10 18:21:04 UTC 2004
"Bradley D. LaRonde" <brad at laronde.org> 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
More information about the uClibc
mailing list