Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory sanitizer doesn't appear to be compiled with -fPIC on linux #4668

Open
rikkimax opened this issue May 23, 2024 · 1 comment
Open

Memory sanitizer doesn't appear to be compiled with -fPIC on linux #4668

rikkimax opened this issue May 23, 2024 · 1 comment

Comments

@rikkimax
Copy link
Contributor

LDC linux binary (from releases):

/usr/bin/ld: /home/rikki/.local/bin/ldc2-1.37.0-linux-x86_64/bin/../lib/libldc_rt.msan.a(msan.cpp.o): relocation R_X86_64_TPOFF32 against `_ZN6__msanL28is_in_symbolizer_or_unwinderE' can not be used when making a shared object; recompile with -fPIC

Tried to compile my shared library with memory sanitizer and received this.

@kinke
Copy link
Member

kinke commented May 23, 2024

Well we don't tamper with those compiler-rt build settings. I guess you are supposed to link the shared sanitizer variant, which we probably don't bundle (but you can use the library from clang).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants