<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64944>64944</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Relocation against MSan function cannot be used with `-shared`.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
abhi-k9
</td>
</tr>
</table>
<pre>
<details>
<summary>Architecture:</summary>
`Linux my-machine 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Thu May 18 10:27:05 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux`
</details>
Flags:
`-fsanitize=memory -fno-sanitize=vptr`
<details>
<summary>Compiler:</summary>
```console
clang version 18.0.0 (https://github.com/llvm/llvm-project.git 7c4e8c6a273f25b3ef33e9c123b3969632ab59bb)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/git_x86/installs/bin
```
</details>
Can someone explain what this means? Please let me know if more details are needed.
```console
ld: error: relocation R_X86_64_TPOFF32 against __msan::msan_current_thread cannot be used with -shared
>>> defined in /home/git_x86/installs/lib/clang/18/lib/x86_64-unknown-linux-gnu/libclang_rt.msan.a(msan_linux.cpp.o)
>>> referenced by msan_linux.cpp:234 (/home/git_x86/llvm-project/compiler-rt/lib/msan/msan_linux.cpp:234)
>>> msan_linux.cpp.o:(__msan::GetCurrentThread()) in archive /home/git_x86/installs/lib/clang/18/lib/x86_64-unknown-linux-gnu/libclang_rt.msan.a
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VV2PqzYQ_TXOywgENiHwwEOaLFeVetvVvVupb8iGAdxr7Mg2u0l_fWXIfm-17UslFEf22D7nzJkxd04OGrEi25_I9rjhsx-NrbgYZfSj3AjTXSrCDh16LpUj7IYkR5Lsr7_s4OZp4vZC2M3etqP02PrZImFhjdD6efnVvjz5Rer5DNMlmng7So2QxWkRJ1G228Upi9MYVdEU8bn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