<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/93910>93910</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [arm64ec] Functions dllimport'ed from dlls have inconsistent address
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            platform:windows
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          efriedma-quic
      </td>
    </tr>
</table>

<pre>
    See https://developercommunity.visualstudio.com/t/Functions-dllimported-from-arm64ec-dlls/10670642 ; the same issue reproduces compiling with clang-cl.  My best explanation for what's happening is that original DLL gets the address of the actual function, but the dllimport is a hybrid_patchable stub the linker implicitly creates.

I'm not sure whether this is a compiler bug, or a linker bug. I'll update when I have more information.

CC @dpaoliello @cjacek
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUk9_OmzgQxZ_G3IyCwED-XHDx9YsiVepe7QOsBnuAaY3N2uNk8_YrSNqqNyBjfI7PzG8wJZ48Ua-6L6q7FphlDrGnMTLZBQ__ZjbFEOyz_5sIZpE1qeZD6ZvSN0t3cmGlaMKyZM_yLO-cMrok2XIoTViUvonSt1v2Rjj4dLDO8bKGKGQPYwzLAeNybMlsG0npW10dT9Wx1aCaLyAzQcKFgFPKBJHWGGw2lMCEZWXHfoIHywzGoZ8OxpUAfz1hoCRA_60OPW6uMIYIjxlF6VOCGdeV_HaUE8iMAiHyxB4dXL99g4kk7cZobaSUIIyvpZGMDsZ3EqU_Yciyb_3KtCkizM8hsv1nRTEzDo4gSR72Hx37HxSBl9WxYXFPMJFQKJWquqrq4_X8qvRpAR8EUo4Ej5lkpggyc3oZvMJThCFP2z1CBPypPeSphE3BOcirRdkFPHyFGe8ES4gE7McQl700fxh_foJqK7ticEzOhW1lvqOhH4XtG3tpLlhQX5_qU11fzkddzH1XXWpjqCJs8UxNW7e67ow5N8exw7YyBfe60m3VNXVVt63W5djZE43j0A6mPV_qUbUVLciudO6-lCFOxd7s_tJc6qpwOJBLO5xarw5lu7lqPh7sbXgkpfUGbey3w4chT0m1leMk6becsLgd7zdpqrvCLx5_907pE1nYkNy-pVe52JvgEychLz-BKHJ0_Z-DMLHMeXjzvhm_X4c1hu9ktgnYQ22Av3Lde_1_AAAA__9tqSzw">