While getting OpenBSD/riscv64 up and running it was noticed that this bit of code to enable emulated TLS was missing from the RISC-V backend.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
2,570 ms | x64 debian > libarcher.races::lock-unrelated.c |
Event Timeline
Comment Actions
Why should we bother to support this? Emulated TLS should die, not be supported by new architectures, IMO. We've had properly-defined TLS from the start.
Comment Actions
+1. Please implement proper ELF TLS and drop reliance on emulated TLS. libclang_rt.builtins-$arch.a has some improper libc calls (e.g. malloc) just because of emutls.
I think we will soon be able to eliminate emutls in the LLVM code base.
Comment Actions
I really wish that were the case. I have been asking the relevant developers for ages.