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

    <tr>
        <th>Summary</th>
        <td>
            [NSAN] numerical-sanitizer not available as shared library
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    the numerical sanitizer is currently linked as whole-archive in the main program.
```-shared-libsan``` does not seem to have any effect.
nsan symbols are left undefined when building a shared library that will fail to link if ```-Wl,-z,defs``` is used.
This makes the numerical sanitizer unusable in any "plugin" to be dynamically loaded by an external framework.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kk-L2zAQxT-NfBkcFCXOn4MP210CveylpT2PrLE9XVkKGimp99MXJ6GBQkEgkJh5b37zUISHQNSq5otq3ioseYyp_cHhawiVjW5u80gQykSJO_QgGDjzJyVgga6kRCH7GTyHD3KAAtcxeqoxdSNfCDjAUj8hBzinOCScVkq_Kf2idvp-ahkxkas9W8Hw9xlcJIEQMwjRBDnCiBcCDDNQ31OXH32CYACZJxu9ACYCT32GEhz1HMjBdaQAtrB3HAZAuKuBZ5swzZBHzHBl76FH9ovMMgpwD0-DP70yr_WnMq-Oenk6ZIEi5B5Gvo8sMOEHCfwPWQlF0PoblmUQZczZl4GDMmaRtgRuDjgtZQvUiI4c2BkwAP3OlAJ66BNOdI3p46FbuXbjjpsjVtSu90bv9HHb6Gps3bGzVjujaWe3e237fm0RbUe7Hg9Ns6u4Ndps9X6t12u9XetVc9g0B42N3buNtu6gtpomZL_y_jKtYhoqFinUHg8bbSqPlrzckmNMoCvcPpUxS5BSu9TUtgyittqzZHl2yZz9LXLv317eVfP2hFU_YS2rxwuyvxFD-WdzVUm-HXM-i9q8KHNS5jRwHotddXFS5rSIPa76nOIv6rIyp5tFUeZ0H-HSmj8BAAD__6Zd_zM">