<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hopefully the first issue has now been resolved, although it may
      require refactoring later.</p>
    <p><a class="moz-txt-link-freetext" href="https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/691">https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/691</a></p>
    <p>The main issue is that, for some reason, trying to dereference
      from a code section instead of a data section raises an access
      violation, although I'm not sure if it's a permissions issue or a
      subtle fault with the pointers.  This may require refactoring
      later on or if bugs manifest in larger projects.<br>
    </p>
    <p>Kit<br>
    </p>
    <div class="moz-cite-prefix">On 26/05/2024 21:33, J. Gareth Moreton
      via fpc-devel wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9b913000-1dfc-4c4d-b59e-09e7dd0b935d@moreton-family.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Thank you for all your assistance with this Sven.</p>
      <p>One trick I have been doing is writing equivalent programs in
        C/C++ to see how Clang and MSVC convert them into equivalent
        assembly language.  It's providing some insights at least in
        regards to what works.  My first attempted fix (putting the jump
        table in the same section as the actual code) unfortunately
        didn't work, so it's something more subtle.<br>
      </p>
      <p>Kit<br>
      </p>
      <div class="moz-cite-prefix">On 26/05/2024 11:55, Sven Barth via
        fpc-devel wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAFMUeB_ROZohYh0ynwXZYzjWQaTK7nue9oO-Xd3Ra5JnNmTMew@mail.gmail.com">
        <meta http-equiv="content-type"
          content="text/html; charset=UTF-8">
        <div dir="auto">
          <div>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">J. Gareth Moreton via
                fpc-devel <<a
                  href="mailto:fpc-devel@lists.freepascal.org"
                  moz-do-not-send="true" class="moz-txt-link-freetext">fpc-devel@lists.freepascal.org</a>>
                schrieb am Sa., 25. Mai 2024, 22:18:<br>
              </div>
              <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>
                  <p>Indeed - I'm not giving up!  I installed Clang via
                    LLVM.  Which of the EXE files is actually the
                    assembler?  It's not entirely clear (no "clang-as",
                    for example).  (Although I trust it works!)</p>
                </div>
              </blockquote>
            </div>
          </div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">Simply check what FPC calls. ;) </div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">
            <div class="gmail_quote">
              <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>
                  <p>I've got some ideas as to how to start debugging. 
                    I will solve this puzzle! </p>
                </div>
              </blockquote>
            </div>
          </div>
          <div dir="auto">There is a tool that converts DWARF to
            CodeView, you can use that to debug with WinDBG. </div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">Regards, </div>
          <div dir="auto">Sven </div>
          <div dir="auto">
            <div class="gmail_quote">
              <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a
        class="moz-txt-link-abbreviated moz-txt-link-freetext"
        href="mailto:fpc-devel@lists.freepascal.org"
        moz-do-not-send="true">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext"
href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel"
        moz-do-not-send="true">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
    </blockquote>
  </body>
</html>