Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ELF] Change "no PT_TLS" error to use errorOrWarn
so that --noinhibit-exec downgrades the error to a warning, which helps debugging when `PHDRS` is specified without `PT_TLS`. Also update the message to make it accurate: STT_TLS may exist in the absence of PT_TLS. In addition, invoking `exitLld(1)` (through `fatal`) is problematic (llvm#66974): When a thread is `exitLld(1)`, triggering `llvm_shutdown`, another thread may be at `relocateAlloc`, accessing `sec.relocs()` which got destroyed(tampered?), leading to incorrect `llvm_unreachable("invalid expression")`.
- Loading branch information