https://bugs.llvm.org/show_bug.cgi?id=45573
Bug ID: 45573
Summary: Code gen for initial-exec TLS differs from gcc
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
https://godbolt.org/z/R4p7R2
LLVM uses @TPOFF while gcc uses @GOTTPOFF.
gcc seems to be correct here according to
https://www.akkadia.org/drepper/tls.pdf
I discovered this while trying to build mesa with lld. lld complains about tls
attributes mismatch, which i think is because there is assembly code in mesa
that access the TLS variable with @GOTTPOFF, while llvm generates code that
uses @TPOFF.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs