<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/111351>111351</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Windows shared library asan_dll_thunk usage.
</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, why is asan_dll_thunk used for -shared in [CrossWindows.cpp](https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/CrossWindows.cpp#L192) ? [https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/sanitizers/asan-building.md](asan-building.md) from Microsoft suggests that this is the old way to do things.
Is there a way to `-lclang_rt.asan_dynamic-x86_64 -lclang_rt.asan_dynamic_runtime_thunk-x86_64` on Windows when building a DLL right now ? When I try I see that it still links clang_rt.asan_dll_thunk-x86_64.lib in addition to those 2 and a simple example crashes after `AddressSanitizer Init done`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU02P4zYM_TXyhYghyx-xDz7MTuA2wPS0RfcYyBZjsytLgShPJv31hZ2kRTtogb1YFvkgPj7yaWYaHWIryi-iPCR6iZMP7W8vu5--Jr03t_ZntNYL9QrX6QbEoFm7k7H2FKfFfYeF0cDZB9jxpAMaIAei_PIaPPM3csZfOR0uF1EehKqnGC8s8hehOqG6keK09OngZ6E6a9-fx-4S_O84RKG63vpeqG7W5ITqBqvduIJoDR4CvWMQqvvVe_s6aXIsVPepsMrfskYJ1YDIu5Xa_5D4hYbg2Z_jwQ_rY8PlsjP3338yeQRZO4r0B4b1sgqz6xeyhtyYzube8qeoauAc_Ax_1QJexhE5MsRJR4gT8apznBC8NXDVN4gejF8zbuRUyIOQL_fvccMFBP3EiUru7CbUKcT0Pqyb0zMNu4-6OlUF_Ef6FBYXacb7XB9gUUnwDh56wnVCB89mQMPh7Q0CjVME56-bvt9WxBFiuMERGPHeE0XgSNaCJfed4V_1n7v0qJla6tct0sZQJO_WruLkGUGBdgY0MM0Xi4AfejuHoHlCBn2OGFYBXowJyPz1OR04OopgvENRyYd-iWlz0-SNTrDN9qpWTb7Pi2RqZVHXaLLaFPW5rFRdVlkvs6wqCiVVJTGhVklVZFLuZZOXeZGezT4fGl3nstF5v29EIXHWZNN1mVMfxoSYF2yzLMvLLLG6R8ub4ZRyeIUtK5Ra_RfazQH9MrIopCWO_PczkaLF9jmMh98s9UGH22df6hHTZAm2_WHXbYTWlX4wfm_VnwEAAP__t21icA">