<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-06-25 2:50 GMT+02:00 Denis Obrezkov <span dir="ltr"><<a href="mailto:denisobrezkov@gmail.com" target="_blank">denisobrezkov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div class="gmail-h5"><div class="gmail_quote">2017-06-25 2:15 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">They are supposed to use the installed linkcmds.</div><div class="gmail-m_-8194182623075376499gmail-HOEnZb"><div class="gmail-m_-8194182623075376499gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Jun 24, 2017 6:04 PM, "Denis Obrezkov" <<a href="mailto:denisobrezkov@gmail.com" target="_blank">denisobrezkov@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-06-23 21:03 GMT+02:00 Denis Obrezkov <span dir="ltr"><<a href="mailto:denisobrezkov@gmail.com" target="_blank">denisobrezkov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-h5"><div class="gmail_quote">2017-06-23 20:16 GMT+02:00 Denis Obrezkov <span dir="ltr"><<a href="mailto:denisobrezkov@gmail.com" target="_blank">denisobrezkov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150h5"><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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><span><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="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_1358455912495069187quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_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><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_1358455912495069187quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_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><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_1358455912495069187quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_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><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_1358455912495069187quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail-m_-263322159330657150m_7995564465388116625m_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></div></div></div></div></blockquote></div></div></div></div></div></blockquote><div>I have a little question: is there any connection between RTEMS linker files</div><div>and example-v2 applications' linker files?</div><div>I think I have a similar mistake there: .data section is not initialized.</div><div><br></div></div><br clear="all"><div><br></div>-- <br><div class="gmail-m_-8194182623075376499gmail-m_88267641342943834m_-3987349278216117842m_2989042120805098018gmail_signature">Regards, Denis Obrezkov</div>
</div></div>
</blockquote></div></div>
</div></div></blockquote></div></div></div>Ok, I will investigate this and libgloss question.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Since, I was a bit lazy, I moved the low_ticker example into the rtems testsuite folder and built it<br clear="all"><div>Now, I have no mistakes with uninitialized data section and I was able to proceed till the rtems_io_initialize function.</div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="gmail-m_-8194182623075376499gmail_signature">Regards, Denis Obrezkov</div>
</font></span></div></div>
</blockquote></div>There is a crt0.s for RISC-V architecture.<div><a href="https://github.com/riscv/riscv-newlib/blob/riscv-newlib-2.5.0/libgloss/riscv/crt0.S">https://github.com/riscv/riscv-newlib/blob/riscv-newlib-2.5.0/libgloss/riscv/crt0.S</a><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>