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

    <tr>
        <th>Summary</th>
        <td>
            IIMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY in JITLink and ORC
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            orcjit
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          sunho
      </td>
    </tr>
</table>

<pre>
    The definition of IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY is "it indicates that no library search for sym1 should be performed." [This thread](https://sourceforge.net/p/mingw/mailman/mingw-users/thread/000a01c5a5e8%24b0737700%T24de6d65da%40DANNY/) clarifies the meaning of the flag in more depth. The specific relevant paragraph is
```
The SVR4 ABI uses (and bfd currently supports)
the equivalent of IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY semantics (a
library member does not resolve a weak symbol unless a strong symbol
cause the member to be linked in)
```

ORC can't correctly support this flag now. In order to implement this, we must add a new LookupKind semantic that indicates "don't pull this symbol in at all, but bind it if it's already present" per symbol level.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNU8tu2zAQ_Br5sqhAy5JsH3RwErd1m6aAa7TNKaDIlcWGIlU-EuTvu5SSvk4B9MBS2t3Z2ZnWyqfm1CNI7JRRQVkDtoPDp927_d23_e7j3f77aX-8ufuy3x0v39_dfL4-XBx3x1tQHrKiUAGUkUrwgB5CzwMYC1q1jrsn8Mid6KGzDvzTsATf26gltAgjOjodUOZUA7Lq4tSrlO-Qy6y6yopNH8Los9UuK97S5W10AinljLnBQCcj3YMy58f05koP3LycvIkenafouV7xljHG2VJUvMJNVlRF2bL1ar1mjIJTUUqsZV1JTlHJrnY3N7dT1y0IzZ3q1DQawoDcUP3ETwo7zc80PAzWJfrG0OeQmPQjCkoS4FDjAzcBRu742fGxJ9IydpWxXVaz52sKU9qXr8cSdhcHIPSJ2g03RFUnQUTn0ARNfMZxtC7QaNs5L8HAn1E9cE1_vHJxHomroMTcZC70srEBhxYdSEsQjA00grf6AYHDI_L7tMXWaohGo_d06IOzRMh8PFcSnPA_0zXVCjYtXCtzj5Lo-o39Pwrm5-fjJYi0yXUAYWlu8dfcVJVEMtFu7GMOB5Kqk3MLNYwah0RC-ikrLgkwDNEH4FISUoOPcG3tfRw_kl5_czBL9o-CSY3Szu3HqPXc8XlqWjX9y7VO1dsYoE2VkgE6elIOMaKT4J5gJN4IS9I2Kf2lAKkBdT4PupDNSm5XW74IKmhsDq9xnIEPh9M1MQlJG8TVIjrd_OuUswp9bHNhBwq0fnh5vRmd_UF0Uqi8j5j8UdVlXS36ZtOVdUse6GoyAK-Rs-0W6w6FkBvWiW6heYvaN-RTGsk68SPNW5BRF6opWFGw9ZItN2y12uRlu1wvK7btOkl-E2VWMkz-zBOInAy8cM2Ep41nTx-18sH_-ci9V2eDOPWi-jyG3rrGR9PbxQS8mVD_Akv-ipY">