<div dir="ltr">I managed to make it work with naked functions:<div><a href="https://gcc.godbolt.org/z/9q5r7W">https://gcc.godbolt.org/z/9q5r7W</a><br></div><div>Compiling locally results in an object with .pdata/.xdata. I would expect you could use gcc-style inline asm here too if you like.</div><div><br></div><div>Generally, if you use these directives in a regular, non-naked (clothed?) function, you should expect to get errors from the assembler about directives outside the prologue. The compiler will assume it is responsible for the prologue, and emit the unwind info directives.</div><div><br></div><div>If you were to use masm instead, yes, I would expect lld-link to still accept it.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 14, 2020 at 2:20 AM Hayden Livingston via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-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">I have found no way to give directives to the inline assembler such<br>
that it generates the relevant pdata/xdata.<br>
<br>
Is this a limitation or I'm being dense?<br>
<br>
If I forgot inline assembly but still use lld-link will my object file<br>
from say MASM get linked properly?<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>