%tp points to the start of the TLS block after the tcb, but
Obj_Entry.tlsoffset includes the tcb, so subtract the size of the
tcb to compute the offset relative to %tp.
Details
Details
- ran t_tls_dynamic tests which failed before after the compiler change to not force LE in https://github.com/llvm/llvm-project/commit/da7b129b1b52bdc52b02b546b75f90fad07f6d3a
Diff Detail
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 27928 Build 26097: arc lint + arc unit
Event Timeline
Comment Actions
Note that this is the same fix as rS339072 for powerpc and rS342671 for powerpc64, and matches the mips implementation, all of which use Variant I TLS and thus should look the same (ignoring the values of the constants themselves).
(Also, %tp in the revision summary looks odd, RISC-V doesn't prefix registers with anything)