<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/111800>111800</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
-fsanitize=fuzzer-no-link without any other sanitizer seems to not work on shared libraries ?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
VA-GS
</td>
</tr>
</table>
<pre>
Hello, when using -fsanitize=fuzzer-no-link and no other fuzzer while linking an executable on Linux, I see libclang_rt.ubsan_standalone-x86_64.a being linked (from `-Wl,--verbose` logs). When I instead link a `.so`, I don't see that `.a` being linked and __sancov_lowest_stack is left undefined. Explicitly asking for libclang_rt.ubsan_standalone-x86_64.a when linking the `.so` fixes the issue.
I found this [question](https://groups.google.com/g/libfuzzer/c/ZShRZ0PvaOI) that seems similar.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUs1u2zwQfBrqspBA0bIkH3RI4k9fDRRo0QANkItBSiuJDU26XMp28vQFZQdBeyh6kYD9mZ0ZjiTSo0Vs2PqerbeJnMPkfPP9Lv3_MVGuf20-oTGOiQc4T2hhJm1HSAeSVgf9hmy1Hea3N_SpdanR9gWk7cE6cGFCD9cenCdtEGI7bksLeMFuDlIZBGfhs7bzJZ7YAWGcU52Rdtz7kM2KpN1TkLaXxllML3W5L4tMgsKIFTGxBybqwbsDsJKnT4aJhzQ9oVeOkJUcjBuJiU0GT1HCDrSlgLKHK9-4lJFjJb9S6J1logoLlTDJsPRlxPntZNS535O0nTvtjTsjhcizewFNYHAIMNseB22xz-C_y9HoTgfzCpIWEwbn_1Ho4vu7d2HCD74w6AvSUtNEM2aMbxm_u353MLjZ9hAmTcDW9z9npKCdZestE_UUwpHY6o6Jlol29G4-UjY6NxrMOneINSZao9X1BZloOyba58fp2zP_epJfdkxsru4Q4oGA9EEb6bOkb1b9ZrWRCTZ5Jep1URabMpmavpKqWAuVr6q-HPKqUpLnuZSrQq6LWqlEN4KLIuc551VR52UmJC_reqNqKZSokLOC40FqkxlzOmTOj8kiusnzvOY8MVKhoSXHQlg8Xy1hQsRY-yYupWoeiRXcaAr0ARN0MNj8LdNnHSY3B5D29Rbs91l_0x8cWBfg7PxLTDRN0mMMmPLSayRgqzaZvWn-8F2HaVY3wyOf2y89evcDu8BEu6ggJtqbzFMjfgUAAP__NFo7lA">