[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 20:41:53 UTC 2004
"Bradley D. LaRonde" <brad at laronde.org> writes:
> I read this in the spec:
>
> All externally visible symbols, both defined and undefined,
> must be hashed into the hash table.
>
> Should libpthread's malloc stub be added to the hash table?
Yes.
> I guess not, but I think that might be happening (haven't verified),
> and libdl finding it in there and thinking it is the real deal, not
> realizing it is just a stub.
If you have an undefined function symbol with st_value != 0, then
that st_value must be for a stub. That's how the loader can (and is
supposed to) tell the difference.
It's probably a good idea to look at how glibc handles this.
Richard
More information about the uClibc
mailing list