<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Kavindu,</p>
    <p>I can't parse your question.  Can you rephrase?</p>
    <p>Philip<br>
    </p>
    <div class="moz-cite-prefix">On 5/12/21 11:33 AM, Kavindu Gimhan
      Zoysa via llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALoJghV2fj_93Fnn-rMcuLEOz3+BOLxoBYRroZBSfOuEjn7OoA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">What should I do, if I want to read the stack map
        within the same program where the stack map is generated? I
        think an ELF-reading library should be used externally.
        <div><br>
        </div>
        <div>Can't I use this C API `<span
            style="color:rgb(0,0,0);font-family:Consolas,"Deja Vu
            Sans Mono","Bitstream Vera Sans
            Mono",monospace;font-size:13.3px">LLVMCreateSimpleMCJITMemoryManager()`?</span><br>
        </div>
      </div>
    </blockquote>
    This is almost certainly unrelated to your question if I'm even
    vaguely understanding you.  <br>
    <blockquote type="cite"
cite="mid:CALoJghV2fj_93Fnn-rMcuLEOz3+BOLxoBYRroZBSfOuEjn7OoA@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div><br clear="all">
            <div>
              <div dir="ltr" class="gmail_signature"
                data-smartmail="gmail_signature">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div>Kavindu Gimhan Zoysa,</div>
                        <div>BSc(Hons) | ENTC | UoM,<br>
                        </div>
                        <div dir="ltr">SSE | WSO2
                          <div><br>
                          </div>
                          <div><a href="https://github.com/KavinduZoysa"
                              target="_blank" moz-do-not-send="true">GitHub</a> <a
href="https://www.linkedin.com/in/kavindu-gimhan-zoysa-85939a122/"
                              target="_blank" moz-do-not-send="true">LinkedIn</a> <a
href="https://medium.com/@kavindugimhanzoysa" target="_blank"
                              moz-do-not-send="true">Medium</a></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, 12 May 2021 at 18:37,
          Denis Antrushin via llvm-dev <<a
            href="mailto:llvm-dev@lists.llvm.org" moz-do-not-send="true">llvm-dev@lists.llvm.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">LLVM
          puts stack map into special section, see <a
            href="https://llvm.org/docs/StackMaps.html#stackmap-section"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://llvm.org/docs/StackMaps.html#stackmap-section</a><br>
          You can use any ELF-reading library to extract/read it<br>
          <br>
          On 12.05.2021 10:15, Kavindu Gimhan Zoysa via llvm-dev wrote:<br>
          > Hi all,<br>
          > <br>
          > I was able to generate the Stack Map which is shown here
          <a
            href="https://llvm.org/docs/StackMaps.html#stack-map-format"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://llvm.org/docs/StackMaps.html#stack-map-format</a>
          <<a
            href="https://llvm.org/docs/StackMaps.html#stack-map-format"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://llvm.org/docs/StackMaps.html#stack-map-format</a>>.
          Now I want to read those entries. What I did was, I
          manually change the .s file as shown below (Added the *.globl
          __LLVM_StackMaps *manually). Then I can read the entries using
          C code.<br>
          > <br>
          > .globl __LLVM_StackMaps<br>
          > __LLVM_StackMaps:<br>
          > .byte 3<br>
          > .byte 0<br>
          > .short 0<br>
          > <br>
          > I want to know, whether this is the correct approach. If
          not could you please suggest me the correct approach?<br>
          > <br>
          > Really appreciate your input on this.<br>
          > <br>
          > Thank you,<br>
          > Kavindu<br>
          > <br>
          > Kavindu Gimhan Zoysa,<br>
          > BSc(Hons) | ENTC | UoM,<br>
          > SSE | WSO2<br>
          > <br>
          > GitHub <<a href="https://github.com/KavinduZoysa"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://github.com/KavinduZoysa</a>>
          LinkedIn <<a
            href="https://www.linkedin.com/in/kavindu-gimhan-zoysa-85939a122/"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.linkedin.com/in/kavindu-gimhan-zoysa-85939a122/</a>>
          Medium <<a href="https://medium.com/@kavindugimhanzoysa"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://medium.com/@kavindugimhanzoysa</a>><br>
          > <br>
          > _______________________________________________<br>
          > LLVM Developers mailing list<br>
          > <a href="mailto:llvm-dev@lists.llvm.org" target="_blank"
            moz-do-not-send="true">llvm-dev@lists.llvm.org</a><br>
          > <a
            href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
          > <br>
          _______________________________________________<br>
          LLVM Developers mailing list<br>
          <a href="mailto:llvm-dev@lists.llvm.org" target="_blank"
            moz-do-not-send="true">llvm-dev@lists.llvm.org</a><br>
          <a
            href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
  </body>
</html>