From: Lanttor <lanttor.guo@freescale.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Maxim Kuvyrkov <maxim@codesourcery.com>,
Greg Ungerer <gerg@snapgear.com>,
linux-m68k@vger.kernel.org
Subject: Re: One issue during kernel porting on coldfire m5441x: dl_main: Assertion `_rtld_local._dl_rtld_map.l_libname' failed!
Date: Tue, 23 Feb 2010 15:51:22 +0800 [thread overview]
Message-ID: <4B8388FA.304@freescale.com> (raw)
In-Reply-To: <m2fx4tnkgf.fsf@igel.home>
>
> The assertion fails only if both l_libname and l_name are NULL.
Thanks Andreas, you're right.
Now I have resolved this issue: I need set the value to %rambar1
register in the head.S file.
This register is the configure register for SRAM. Although I not use
SRAM memory, but it
seems I need configure this register, otherwise I will meet the issue
before.
I'm not sure why this fix will affect run time loader. I guess the
toolchain may do some registers' check.
Best Regards,
Lanttor
------------------------------------------------------------------------
*From:* Andreas Schwab <schwab@linux-m68k.org>
*Sent:* 02/23/2010 3:23:28 AM +0800
*To:* Lanttor <lanttor.guo@freescale.com>
*CC:* Maxim Kuvyrkov <maxim@codesourcery.com>, Greg Ungerer
<gerg@snapgear.com>, linux-m68k@vger.kernel.org
*Subject:* One issue during kernel porting on coldfire m5441x: dl_main:
Assertion `_rtld_local._dl_rtld_map.l_libname' failed!
> Lanttor <lanttor.guo@freescale.com> writes:
>
>
>> 1206 if (! GL(dl_rtld_map).l_libname && GL(dl_rtld_map).l_name)
>> 1207 {
>> 1208 /* We were invoked directly, so the program might not have a
>> 1209 PT_INTERP. */
>> 1210 _dl_rtld_libname.name = GL(dl_rtld_map).l_name;
>> 1211 /* _dl_rtld_libname.next = NULL; Already zero. */
>> 1212 GL(dl_rtld_map).l_libname = &_dl_rtld_libname;
>> 1213 }
>> 1214 else
>> 1215 assert (GL(dl_rtld_map).l_libname); /* How else did we get
>> here? */
>>
>>
>> So I guess GL(dl_rtld_map).l_libname is not NUL and throws an
>> exception. The reason is still tracing...
>>
>
> The assertion fails only if both l_libname and l_name are NULL.
>
> Andreas.
>
>
prev parent reply other threads:[~2010-02-23 7:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-21 9:02 One issue during kernel porting on coldfire m5441x: dl_main: Assertion `_rtld_local._dl_rtld_map.l_libname' failed! Lanttor
[not found] ` <4B8149BC.5020801@codesourcery.com>
2010-02-22 7:44 ` Lanttor
2010-02-22 19:23 ` Andreas Schwab
2010-02-23 7:51 ` Lanttor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B8388FA.304@freescale.com \
--to=lanttor.guo@freescale.com \
--cc=gerg@snapgear.com \
--cc=linux-m68k@vger.kernel.org \
--cc=maxim@codesourcery.com \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox