<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I guess not, when I remember correctly
      this has already been repaired for armv6m. The problem for me is
      that .Lj9 is defined as a negative number. As a consequence r13
      points to nirvana and <br>
      <br>
      str     r0,[r13, #8] creates an Exception.<br>
      <br>
      <br>
      # [87] begin<br>
              push    {r4,r14}<br>
              ldr     r4,.Lj9<br>
              add     r13,r13,r4<br>
      # Var bit located at r13+0<br>
      # Var direction located at r13+4<br>
      # Var $self located at r13+8<br>
              str     r0,[r13, #8]<br>
              strb    r1,[r13]<br>
              str     r2,[r13, #4]<br>
      .Ll2:<br>
      <br>
      .....<br>
      <br>
      .Lj9:<br>
              .long   -32840<br>
      .Lj7:<br>
              .long   32768<br>
      .Lj10:<br>
              .long   32840<br>
      .Lt2:<br>
      <br>
      Am 13.01.14 15:15, schrieb Jeppe Græsdal Johansen:<br>
    </div>
    <blockquote cite="mid:20140113142500.0910543B3@freepascal.dfmk.hu"
      type="cite">Might be related to the mla/mls optimization which
      somehow has been enabled even though it's still broken<br>
      <br>
      ----- Reply message -----<br>
      Fra: "Reinier Olislagers" <a class="moz-txt-link-rfc2396E" href="mailto:reinierolislagers@gmail.com"><reinierolislagers@gmail.com></a><br>
      Dato: man., jan. 13, 2014 13:44<br>
      Emne: [fpc-pascal] ARM Linux crosscompiler: compiles but...
      executable gives segmentation fault<br>
      Til: <a class="moz-txt-link-rfc2396E" href="mailto:fpc-pascal@lists.freepascal.org"><fpc-pascal@lists.freepascal.org></a><br>
      <br>
      On 13/01/2014 12:34, Michael Ring wrote:<br>
      > I had a look at armv6m yesterday evening, parts of my code
      run fine in<br>
      > gdb, the code crashes in the init of a procedure when trying
      to prepare<br>
      > the access to contents of a set.<br>
      > The address of the set seems to get calculated totally wrong
      ending up<br>
      > in a memory access at the end of the chip's address range.<br>
      > Not sure if this is related to your problem, I will try to
      boil down the<br>
      > example to a bare minimum to see where the generated code
      differs<br>
      > between armv7m and armv6m.<br>
      <br>
      Thanks a lot, Michael!<br>
      <br>
      _______________________________________________<br>
      fpc-pascal maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
      <a moz-do-not-send="true"
        href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fpc-pascal maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a></pre>
    </blockquote>
    <br>
  </body>
</html>