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

Carmelo AMOROSO carmelo.amoroso at st.com
Sat Jan 21 14:45:02 UTC 2012


On 21/01/2012 9.28, Khem Raj wrote:
> 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.
> 

great fine. Fix makes sense.

Acked-by: Carmelo Amoroso <carmelo.amoroso at st.com>

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

none from me.

> -Khem
> 
> 
Carmelo


More information about the uClibc mailing list