[PATCH] ldso:mips: fix symbol lookup for JUMP_SLOT and COPY relocations

Khem Raj raj.khem at gmail.com
Sat Jan 21 08:28:42 UTC 2012


On (20/01/12 10:36), Carmelo AMOROSO wrote:
> On 20/01/2012 7.55, Khem Raj wrote:
> > On Thu, Jan 19, 2012 at 6:42 AM, Carmelo AMOROSO <carmelo.amoroso at st.com> wrote:
> >> On 19/01/2012 15.28, Carmelo AMOROSO wrote:
> >>> Fill properly the sym_ref fields when invoking _dl_find_hash to lookup
> >>> symbols
> > 
> > this did not make the segfault go away. Although this patch is ok.
> > this problem is a crash in libstdc++ I did not have debug info to
> > get more info but I am building an image with debug info
> > 
> 
> I can't help with mips. As soon as you have some debug out, I can try to
> figure out where the problem is.
> 
> I've looked at the change history of mips/elfinterp.c, I'm not seeing
> currently other fix than this one, but I'll keep on looking at this.

I see the problem and attached patch fixed it. Relocations on mips were
being resolved before the new module scope was added to scope map and
it was causing the libstdc++ constructors to fail to run since the
symbols were not resolved properly.

I will push the three fixes we have in this series soon unless someone
has objections

-Khem


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mips-libdl-Apply-relocations-after-appending-the-new.patch
Type: text/x-diff
Size: 1683 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120121/ce36f58a/attachment.bin>


More information about the uClibc mailing list