[llvm-bugs] [Bug 45573] New: Code gen for initial-exec TLS differs from gcc
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 16 05:30:17 PDT 2020
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: unassignedbugs at nondot.org
Reporter: yshuiv7 at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200416/a364ae8d/attachment-0001.html>
More information about the llvm-bugs
mailing list