<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-06-23 16:39 GMT+02:00 Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class=""><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Jun 23, 2017 9:29 AM, "Gedare Bloom" <<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>> wrote:<br type="attribution"><blockquote class="m_1358455912495069187quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_1358455912495069187quoted-text">On Thu, Jun 22, 2017 at 8:32 PM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com" target="_blank">denisobrezkov@gmail.com</a>> wrote:<br>
>> Ok, then I will try to adapt the default linkcmd file today.<br>
>><br>
>> --<br>
>> Regards, Denis Obrezkov<br>
><br>
><br>
> Hello all,<br>
> It seems that data section wasn't copied from ROM, so I've added the<br>
> initialization code<br>
> and now I have a proper value. Thus, I can proceed further to new errors.<br>
><br>
> I haven't started to develop new linkcmd file, general for the architecture<br>
> + specific<br>
> for the BSP. Should I? Hesham?<br>
><br>
</div>You may want to just get it working first, and then refactor the linkcmds.<br></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">+1 just make sure it is working when you start doing this. :)</div><span class=""><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_1358455912495069187quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="m_1358455912495069187quoted-text"><br>
> Also, I have a question:<br>
> there is a section called 'rwbarrier' and it is placed in data. Should it be<br>
> also initialized?<br>
> (copied from rom)<br>
</div>Everything up to the bss probably should be copied from ROM.<br></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">Agreed. Is there a crt0 in libgloss for this architecture to check against?</div><div dir="auto"><br></div><div dir="auto">Just remember that the order and layout of sections may have implicit ties to the code in the startup.</div><span class=""><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_1358455912495069187quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="m_1358455912495069187quoted-text"><br>
> And is it possible to decrease a required memory amount by restricting a<br>
> user to C language usage?<br>
> (no C++ sections in linkcmd)<br>
><br>
</div>I don't think so. They shouldn't really be having an impact anyway<br>
except for C++ applications.<br></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">All you end up with is a loop to iterate over the list of empty global constructors.</div><span class=""><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_1358455912495069187quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="m_1358455912495069187elided-text"><br>
><br>
> --<br>
> Regards, Denis Obrezkov<br>
><br>
> ______________________________<wbr>_________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman<wbr>/listinfo/devel</a><br>
</div></blockquote></div><br></div></div></span></div>
</blockquote></div>Ok, I will look at libgloss.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Now, I have a little issue:</div><div class="gmail_extra">I have compiled a new rtems BSP, I checked it in gdb - it copies .data section.<br>Then I clean examples-v2 by doing './waf clean', then do ./waf configure and build with './waf'.</div><div class="gmail_extra">After that, I am getting mistake and build only low_ticker example with ./waf.</div><div class="gmail_extra"><br></div><div class="gmail_extra">But, when I try to run it on the target, though I can see the proper code via 'list' command,</div><div class="gmail_extra">I can't go through the code.</div><div class="gmail_extra">For example, though I have added the code for data copying and can see it in gdb with 'list' command,</div><div class="gmail_extra">I can't step through it. What could be the reason?</div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>